|
@@ -3,19 +3,6 @@ import random
|
|
from command_system import as_plugin, RollbotResponse
|
|
from command_system import as_plugin, RollbotResponse
|
|
|
|
|
|
|
|
|
|
-HELP_MSG = """
|
|
|
|
-Hello!
|
|
|
|
-I am Rollbot 3.0 - a reimplementation of the previous Rollbot.
|
|
|
|
-I am a simple chatbot built in Python.
|
|
|
|
-I am licensed as open source under the MIT license.
|
|
|
|
-"""
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-@as_plugin
|
|
|
|
-def info(db, message):
|
|
|
|
- return RollbotResponse(message, txt=HELP_MSG)
|
|
|
|
-
|
|
|
|
-
|
|
|
|
@as_plugin
|
|
@as_plugin
|
|
def isadmin(db, message):
|
|
def isadmin(db, message):
|
|
return RollbotResponse(message, txt=str(message.from_admin))
|
|
return RollbotResponse(message, txt=str(message.from_admin))
|
|
@@ -31,26 +18,6 @@ def echo(db, message):
|
|
return RollbotResponse(message, txt="'%s' - %s" % (message.raw_args, message.name))
|
|
return RollbotResponse(message, txt="'%s' - %s" % (message.raw_args, message.name))
|
|
|
|
|
|
|
|
|
|
-@as_plugin
|
|
|
|
-def thanks(db, message):
|
|
|
|
- return RollbotResponse(message, txt="You're welcome!")
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-@as_plugin
|
|
|
|
-def guess(db, message):
|
|
|
|
- return RollbotResponse(message, txt="Rollbot's back - tell a friend!")
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-@as_plugin
|
|
|
|
-def meme(db, message):
|
|
|
|
- return RollbotResponse(message, txt="fuck off")
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-@as_plugin
|
|
|
|
-def unmeme(db, message):
|
|
|
|
- return RollbotResponse(message, txt="get a job")
|
|
|
|
-
|
|
|
|
-
|
|
|
|
@as_plugin
|
|
@as_plugin
|
|
def greet(db, message):
|
|
def greet(db, message):
|
|
return RollbotResponse(message, txt=random.choice(("Hi!", "Hello!", "안녕하세요", "こんにちは", "你好", "👋")))
|
|
return RollbotResponse(message, txt=random.choice(("Hi!", "Hello!", "안녕하세요", "こんにちは", "你好", "👋")))
|