From 242dcf8d3e9846bbb7db473caba3fc573f013a43 Mon Sep 17 00:00:00 2001 From: pocketjawa Date: Tue, 21 May 2019 22:03:04 -0400 Subject: [PATCH] Added swear command --- helpcommand.txt | 3 ++- pocketbot.py | 5 +++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/helpcommand.txt b/helpcommand.txt index 277baae..0a6544a 100644 --- a/helpcommand.txt +++ b/helpcommand.txt @@ -23,4 +23,5 @@ **!giveaway prize**: Do a giveaway based on users reacting with the emoji you react with secretly. Use in private and replace prize with an actual prize! **!np**: Posts currently playing info for ToukuFM. **!roll**: Rolls any number of dice! Use like `!roll d20`, `!roll 2d6`, or `!roll 3d6 d20` -**!fmskip station**: Tells LiquidSoap to skip the currently playing track on **station** on JawaFM. \ No newline at end of file +**!fmskip station**: Tells LiquidSoap to skip the currently playing track on **station** on JawaFM. +**!swear**: Make me swear! \ No newline at end of file diff --git a/pocketbot.py b/pocketbot.py index 53e93c4..0de2d11 100644 --- a/pocketbot.py +++ b/pocketbot.py @@ -379,6 +379,11 @@ def on_message(message): tn.write(skipcommand.encode('ascii')) tn.close() + #Get creative swear + elif message.content.lower().startswith(command_prefix + 'swear'): + swear = requests.get("https://swear.jawa.moe").text + yield from client.send_message(message.channel, swear) + client.loop.create_task(ups_check())