Better dashboard! Should fix prst.json

This commit is contained in:
Remy Moll
2021-01-17 23:56:32 +01:00
parent 3401b68d6c
commit 7054ec8014
2 changed files with 29 additions and 23 deletions

View File

@@ -30,7 +30,6 @@ class ChatBot(FW.BotFramework):
"weather" : self.bot_show_weather,
"google" : self.bot_google_search,
"events" : self.bot_print_events,
"emojify" : self.bot_emojify,
"wikipedia" : self.bot_show_wikipedia,
"zvv" : self.bot_zvv,
"cronjob" : self.bot_cronjob,
@@ -153,21 +152,6 @@ class ChatBot(FW.BotFramework):
return send_string
def bot_emojify(self, *args):
"""Converts a string to emojis"""
if len(args) < 2:
return "Please send a separator as the first argument, and the text afterwards.\nExample:\n/emojify :heart: Example text"
sep = args[0]
string_emoji = ""
for word in args[1:]:
out_string = self.emojify_word(word)
string_emoji += out_string + sep
return string_emoji
def bot_show_help(self, *args):
"""Show a help message.