From fcf69686bf35bcfa2228d51d1f57da38750961e5 Mon Sep 17 00:00:00 2001 From: Julian Marcos Date: Mon, 26 Jun 2023 15:28:01 +0000 Subject: [PATCH] Remove a plugin and modify the bot's help. --- plugins/clock.py | 30 ------------------------------ plugins/rollcall.py | 2 +- 2 files changed, 1 insertion(+), 31 deletions(-) delete mode 100644 plugins/clock.py diff --git a/plugins/clock.py b/plugins/clock.py deleted file mode 100644 index 145386c..0000000 --- a/plugins/clock.py +++ /dev/null @@ -1,30 +0,0 @@ -import math -import json -import time - -from pinhook import plugin as p - -with open('emojis.json', 'r', encoding='utf-8') as e: - emojis = json.load(e) - -emojis = sorted(emojis.items(), key=lambda x: x[0]) - -emoji_list = {} -c = 0 -for k,v in emojis: - emoji_list[str(c)] = v - c += 1 - -@p.command('&emojitime') -def emojitime(msg): - e_len = len(emoji_list) - now = int(time.time() * 100) - s = math.floor(now % e_len) - s = emoji_list[str(s)] - - m = math.floor((now % e_len**2)/e_len) - m = emoji_list[str(m)] - - h = math.floor((now % e_len**3)/e_len**2) - h = emoji_list[str(h)] - return p.message(u':'.join([h,m,s])) diff --git a/plugins/rollcall.py b/plugins/rollcall.py index 8ef3e5b..563ab87 100644 --- a/plugins/rollcall.py +++ b/plugins/rollcall.py @@ -4,5 +4,5 @@ from pinhook import plugin as p @p.command('!rollcall', help_text="The rollcall command to introduce the bot to newcomers") @p.command('&ju', help_text="&ju so people can get infor for this bot specificaly") def rollcall(msg): - out = "Beep boop, i'm a bot from jmjl. I currently can show you the date join and leave channels, if you need more, be sure to make a pr on git~town/jmjl/juju. I also have current music but that's broken. -|- News: I'm doing !tilde now as krowbar's bot's offline." + out = "Beep boop, i'm a bot from jmjl. If you'd like the command list run &help." return p.message(out)