From b0378934da71eb3f8997aa1b336ccc8e29e98f34 Mon Sep 17 00:00:00 2001 From: REDNBLACK Date: Sun, 16 Apr 2017 17:38:56 +0300 Subject: [PATCH] Added bot info folder, updated help --- commands_description.txt | 7 ------- info/about.txt | 1 + info/commands.txt | 14 ++++++++++++++ info/description.txt | 2 ++ info/help.txt | 18 ++++++++++++++++++ src/handler/commands/help.py | 13 ++++++++++--- 6 files changed, 45 insertions(+), 10 deletions(-) delete mode 100644 commands_description.txt create mode 100644 info/about.txt create mode 100644 info/commands.txt create mode 100644 info/description.txt create mode 100644 info/help.txt diff --git a/commands_description.txt b/commands_description.txt deleted file mode 100644 index 1491815..0000000 --- a/commands_description.txt +++ /dev/null @@ -1,7 +0,0 @@ -start - Start bot -help - Commands list -ping - Ping the bot -get_stats - Get number of pairs -chance - Get or set reply chance (1-50) -mod_f - (ADMIN ONLY) Find word to remove -mod_d - (ADMIN ONLY) Remove given word diff --git a/info/about.txt b/info/about.txt new file mode 100644 index 0000000..0248189 --- /dev/null +++ b/info/about.txt @@ -0,0 +1 @@ +This bot's purpose is to listen to you, learn from you, and eventually become a perfect conversational partner diff --git a/info/commands.txt b/info/commands.txt new file mode 100644 index 0000000..5a85838 --- /dev/null +++ b/info/commands.txt @@ -0,0 +1,14 @@ +start - Start bot +help - Commands list +ping - Ping the bot +get_stats - Get number of pairs +chance - Get or set reply chance (1-50) +mod_f - (ADMIN ONLY) Find word to remove +mod_d - (ADMIN ONLY) Remove given word +meow - Random cat pic +borscht - Random borscht pic +vzhuh и текст - Create вжух meme with «вжух и текст» caption +woof - Random dog pic +boobs - Random boobs pic +butts - Random butt pic +xkcd - Random xkcd comic diff --git a/info/description.txt b/info/description.txt new file mode 100644 index 0000000..b63df65 --- /dev/null +++ b/info/description.txt @@ -0,0 +1,2 @@ +Well, Imaginary Friend bot can do a lot – type /help to know about available commands. +But its purpose is to listen to you, learn from you, and eventually become a perfect conversational partner. diff --git a/info/help.txt b/info/help.txt new file mode 100644 index 0000000..649d5f5 --- /dev/null +++ b/info/help.txt @@ -0,0 +1,18 @@ +Add me to your group and let me listen to your chat for a while. +When I learn enough word pairs, I'll start bringing fun and absurdity to your conversations. + +Available commands: +• /ping: u know the drill, +• /get_stats: get the number of word pairs I've learned in this chat, +• /chance : set the chance that I'll reply to a random message (must be in range 1-50, default: 5), +• /chance: get the current chance of my random reply, +• /meow: show random cat pic, +• /borscht: show random borscht pic, +• /vzhuh и текст: create вжух meme with «вжух и текст» caption, +• /woof: show random dog pic, +• /boobs: show random boobs pic, +• /butts: show random butt pic, +• /xkcd: show random xkcd comic. + +If you get tired of me, you can kick me from the group. +In 12 hours, I'll forget everything that have been learned in your chat, so you can add me again and teach me new things! diff --git a/src/handler/commands/help.py b/src/handler/commands/help.py index 13ec6e9..2bb16a0 100644 --- a/src/handler/commands/help.py +++ b/src/handler/commands/help.py @@ -13,10 +13,17 @@ class Help(Base): When I learn enough word pairs, I'll start bringing fun and absurdity to your conversations. Available commands: -• /ping, +• /ping: u know the drill, • /get_stats: get the number of word pairs I've learned in this chat, -• /set_chance: set the chance that I'll reply to a random message (must be in range 1-50, default: 5), -• /get_chance: get the current chance of my random reply. +• /chance : set the chance that I'll reply to a random message (must be in range 1-50, default: 5), +• /chance: get the current chance of my random reply, +• /meow: show random cat pic, +• /borscht: show random borscht pic, +• /vzhuh и текст: create вжух meme with «вжух и текст» caption, +• /woof: show random dog pic, +• /boobs: show random boobs pic, +• /butts: show random butt pic, +• /xkcd: show random xkcd comic. If you get tired of me, you can kick me from the group. In 12 hours, I'll forget everything that have been learned in your chat, so you can add me again and teach me new things!