Remove chatterbot

Removed chatterbot code in favor of a better implementation elsewhere
This commit is contained in:
aikaterna
2017-07-09 15:00:57 -07:00
parent b7c744b456
commit fb24b3b38a
3 changed files with 2 additions and 40 deletions

View File

@@ -3,6 +3,6 @@ Cogs for Red-DiscordBot by Twentysix26.
cah - Cards Against Humanity. A port of CorpBot's module: https://github.com/corpnewt/CorpBot.py
chatterbot - A cog to chat with the bot, using ChatterBot: https://github.com/gunthercox/ChatterBot
pug - Warcraft pug checker. A port of PugBot's module: https://github.com/reznok/PugBot
The chatterbot cog that was previously on this repo has been removed in favor of: https://github.com/Nobleasskicker/GrandeCogs/tree/master/chat

View File

@@ -1,28 +0,0 @@
from discord.ext import commands
try:
from chatterbot import ChatBot
chatbotInstalled = True
except:
chatbotInstalled = False
class ChatterBot:
"""Chatter with the bot."""
def __init__(self, bot):
self.bot = bot
@commands.command(pass_context=True)
async def chatterbot(self, ctx, message):
"""Talk with the bot via ChatterBot."""
chatbot = ChatBot('Red-DiscordBot', trainer='chatterbot.trainers.ChatterBotCorpusTrainer')
chatbot.train("chatterbot.corpus.english")
await self.bot.say(chatbot.get_response(message))
def setup(bot):
if chatbotInstalled is False:
raise RuntimeError("Install ChatterBot:\n"
"[p]debug bot.pip_install('chatterbot')\n"
"Then [p]load chatterbot")
bot.add_cog(ChatterBot(bot))

View File

@@ -1,10 +0,0 @@
{
"AUTHOR" : "aikaterna",
"INSTALL_MSG" : "Thanks for installing ChatterBot. This is still in testing.",
"NAME" : "Chatterbot",
"SHORT" : "Chat with the bot.",
"REQUIREMENTS" : ["ChatterBot"],
"DESCRIPTION" : "ChatterBot is a machine-learning based conversational dialog engine, check it out at: https://github.com/gunthercox/ChatterBot",
"TAGS" : ["chatter", "chat"]
"HIDDEN": true
}