Groups - silv3rr/wraith GitHub Wiki

Configuring groups

By default, all bots, and channels, are in the group main, this is configured via .set groups and .chanset default groups. To customize groups for a bot, use botset as shown below.

Adding a bot to a group

Use .botset groups to add/remove/list groups for a bot.

[23:50:13] #bryan# botset bot1 +groups group1
bot1:
Added 'group1' to groups list.
(list  ) groups             : main,group1
[23:50:13] #bryan# botset bot1 groups
(list  ) groups             : main,group1
[23:50:13] #bryan# botset bot1 +groups group2
bot1:
Added 'group2' to groups list.
(list  ) groups             : main,group1,group2
[23:51:58] #bryan# botset bot1 -groups main
bot1:
Removed 'main' from groups list.
(list  ) groups             : group1,group2

Adding/Removing groups to a channel

Use .chanset #channel groups { group1 group2 } to configure groups for a channel

[23:43:22] #bryan# chanset (#chan1) groups { main }
Successfully set modes { groups { main } } on #chan1
[23:43:22] #bryan# chanset (#chan1) groups { group1 }
Successfully set modes { groups { group1 } } on #chan1
[23:43:22] #bryan# chanset (#chan1) groups { group1 group2 }
Successfully set modes { groups { group1 group2 } } on #chan1

Listing groups/bots

Listing current groups

All groups can be listed by running the .groups command.

[23:20:49] #bryan# groups
main    : bot1 bot2 bot3 bot4
group1  : bot1 bot5
group2  : bot6 bot7 bot8
group3  : bot2 bot9
Total groups: 4
[23:20:49] #bryan# groups bot1
bot1 is in groups: main group1
Total groups: 2

Listing bots in a group

Bots in a particular group can be listed with the .bots %groupname command. Bots prefixed with a ***** are down.

[23:38:59] #bryan# bots %main
some.server.com     : *bot1 *bot2
another.server.com  : bot3 bot4 bot5 bot8
someother.server.com: bot2 bot6 bot7 bot9
(Total Matching: 9/9)
[23:38:59] #bryan# bots %group1
some.server.com     : *bot1
another.server.com  : bot5
(Total Matching: 2/9)

Listing groups in a channel

Use .chaninfo to list the groups in a channel.

[23:42:56] #bryan# chaninfo #chan1
Settings for channel #chan2 (Added Thu Oct 28 20:52:16 2004 UTC by bryan):
Protect modes (chanmode): +stn
Groups: group1 group3

Listing channels a group is in

Use .channels %groupname to list all channels a group is part of.

[23:45:02] #bryan# channels %main
group 'main' is in 3 channels:
   #chan1         (private)  (bitch)    (closed) (backup)
   #chan2         (private)  (backup)
   #chan3         (private)  (backup)
[23:46:01] #bryan# channels %group1
group 'group1' is in 1 channel:
   #chan4         (private)  (bitch)    

Controlling a group

A group can be controlled with .botcmd %groupname cmd

[23:56:29] #bryan# botcmd %group1 whoami ...
[23:56:30] (bot1) #bryan# whoami
[bot1] You are bryan@bot1.
[23:56:30] (bot5) #bryan# whoami
[bot5] You are bryan@bot5.
⚠️ **GitHub.com Fallback** ⚠️