diff --git a/modules/botserv/bs_assign.cpp b/modules/botserv/bs_assign.cpp index 30df46a0f..981ee4ac4 100644 --- a/modules/botserv/bs_assign.cpp +++ b/modules/botserv/bs_assign.cpp @@ -84,6 +84,13 @@ public: "can then configure the bot for the channel so it fits " "your needs." )); + + ExampleWrapper() + .AddEntry("#opers OperServ", _( + "Assigns the \037OperServ\037 bot to \037#opers\037." + )) + .SendTo(source); + return true; } }; @@ -150,6 +157,13 @@ public: "be able to reassign a bot later without having to reconfigure " "it entirely." )); + + ExampleWrapper() + .AddEntry("#opers", _( + "Unassigns a previously assigned bot from \037#opers\037." + )) + .SendTo(source); + return true; } }; diff --git a/modules/botserv/bs_badwords.cpp b/modules/botserv/bs_badwords.cpp index 981fc302e..d939fe053 100644 --- a/modules/botserv/bs_badwords.cpp +++ b/modules/botserv/bs_badwords.cpp @@ -496,7 +496,7 @@ public: "\n\n" "The \002DEL\002 command removes the given word from the " "bad words list. If a list of entry numbers is given, those " - "entries are deleted. (See the example for LIST below.)" + "entries are deleted." "\n\n" "The \002LIST\002 command displays the bad words list. If " "a wildcard mask is given, only those entries matching the " @@ -509,14 +509,44 @@ public: source.service->GetQueryCommand("generic/help").c_str(), source.command.nobreak().c_str()); - ExampleWrapper examples; - examples.AddEntry("#channel LIST 2-5,7-9", _( - "Lists bad word entries on \037#channel\037 numbered 2 through 5 and 7 through 9." - )); - examples.AddEntry("#channel LIST *UwU*", _( - "Lists bad word entries on \037#channel\037 that match \037*UwU*\037." - )); - examples.SendTo(source); + ExampleWrapper() + .AddEntry("#channel ADD smeg", _( + "Add \035smeg\035 to the bad word list of \035#channel\035. If a user says this " + "word anywhere in a message they will be kicked." + )) + .AddEntry("#channel ADD smeg SINGLE", _( + "Add \035smeg\035 to the bad word list of \035#channel\035. If a user says only " + "this word in a message they will be kicked." + )) + .AddEntry("#channel ADD smeg START", _( + "Add \035smeg\035 to the bad word list of \035#channel\035. If a user says this " + "word at the start of a message they will be kicked." + )) + .AddEntry("#channel ADD smeg END", _( + "Add \035smeg\035 to the bad word list of \035#channel\035. If a user says this " + "word at the start of a message they will be kicked." + )) + .AddEntry("#channel CLEAR", _( + "Clears all bad word entries set on \035#channel\035." + )) + .AddEntry("#channel DEL 2-5,7-9", _( + "Deletes bad word entries set on \035#channel\035 numbered 2 through 5 and 7 " + "through 9." + )) + .AddEntry("#channel DEL heck", _( + "Deletes \035heck\035 from the bad word list of \035#channel\035." + )) + .AddEntry("#channel LIST", _( + "Lists all bad word entries set on \035#channel\035." + )) + .AddEntry("#channel LIST 2-5,7-9", _( + "Lists bad word entries set on \035#channel\035 numbered 2 through 5 and 7 through " + "9." + )) + .AddEntry("#channel LIST *frack*", _( + "Lists bad word entries set on \035#channel\035 that match \035*frack*\035." + )) + .SendTo(source); return true; } diff --git a/modules/botserv/bs_bot.cpp b/modules/botserv/bs_bot.cpp index f50c27f83..cb763e985 100644 --- a/modules/botserv/bs_bot.cpp +++ b/modules/botserv/bs_bot.cpp @@ -351,8 +351,7 @@ public: "channels." "\n\n" "\002%s\033ADD\002 adds a bot with the given nickname, username, " - "hostname and realname. Since no integrity checks are done " - "for these settings, be really careful." + "hostname and realname." "\n\n" "\002%s\033CHANGE\002 allows you to change the nickname, username, hostname " "or realname of a bot without deleting it (and " @@ -367,6 +366,25 @@ public: source.command.nobreak().c_str(), source.command.nobreak().c_str(), source.command.nobreak().c_str()); + + ExampleWrapper() + .AddEntry("ADD Chii chobit persocom.test Chii Motosuwa", _( + "Adds a new bot with the nickname \035Chii\035, username \035chobit\035, hostname " + "\035persocom.test\035, and realname \035Chii Motosuwa\035." + )) + .AddEntry("CHANGE Elda Chii", _( + "Renames an existing bot called \035Elda\035 to \035Chii\035." + )) + .AddEntry("CHANGE Chii Mahoro saint vesper.test Mahoro Andou", _( + "Changes all of the information of the bot called \035Chii\035. The new nickname " + "will be \035Mahoro\035, the new username will be \035saint\035, the new hostname " + "will be \035vesper.test\035, and the new realname will be \035Mahoro Andou\035." + )) + .AddEntry("DEL Mahoro", _( + "Deletes a bot called \035Mahoro\035." + )) + .SendTo(source); + return true; } }; diff --git a/modules/botserv/bs_control.cpp b/modules/botserv/bs_control.cpp index 6159b9eb4..b9cf3ae8c 100644 --- a/modules/botserv/bs_control.cpp +++ b/modules/botserv/bs_control.cpp @@ -71,6 +71,13 @@ public: this->SendSyntax(source); source.Reply(" "); source.Reply(_("Makes the bot say the specified text on the specified channel.")); + + ExampleWrapper() + .AddEntry(_("#chat hello all"), _( + "Sends a message to \035#chat\035 saying \035hello all\035." + )) + .SendTo(source); + return true; } }; @@ -126,9 +133,16 @@ public: this->SendSyntax(source); source.Reply(" "); source.Reply(_( - "Makes the bot do the equivalent of a \"/me\" command " - "on the specified channel using the specified text." + "Makes the bot do the equivalent of a \"/me\" command on the specified channel using " + "the specified text." )); + + ExampleWrapper() + .AddEntry(_("#chat is eating pizza"), _( + "Sends an action message to \035#chat\035 saying \035is eating pizza\035." + )) + .SendTo(source); + return true; } }; diff --git a/modules/botserv/bs_info.cpp b/modules/botserv/bs_info.cpp index 4e4b2b3dc..7bfa283bf 100644 --- a/modules/botserv/bs_info.cpp +++ b/modules/botserv/bs_info.cpp @@ -104,6 +104,17 @@ public: "you'll get information about a bot, such as creation " "time or number of channels it is on." ), source.service->nick.c_str()); + + ExampleWrapper() + .AddEntry("#example", _( + "Shows information about the bot assigned to \035#example\035 and its kickers and " + "options." + )) + .AddEntry("ChanServ", _( + "Shows information about the \035ChanServ\035 bot." + )) + .SendTo(source); + return true; } diff --git a/modules/botserv/bs_set.cpp b/modules/botserv/bs_set.cpp index 1460febcc..7ccde9352 100644 --- a/modules/botserv/bs_set.cpp +++ b/modules/botserv/bs_set.cpp @@ -166,6 +166,13 @@ public: "be removed after the given time. Set to 0 to disable bans from " "automatically expiring." )); + + ExampleWrapper() + .AddEntry("#wibble 15m", _( + "Sets bot bans on \035#wibble\035 to expire after \03515 minutes\035." + )) + .SendTo(source); + return true; } };