Added command to post random mix
parent
67a1b2cc0f
commit
bf6a029c7e
|
@ -2,6 +2,7 @@
|
||||||
**!help**: show this help blurb
|
**!help**: show this help blurb
|
||||||
**!maki** or **!monday**: Posts a picture of Maki. Don't forget to praise on Monday!
|
**!maki** or **!monday**: Posts a picture of Maki. Don't forget to praise on Monday!
|
||||||
**!mixes**: post link to my fire mixtapes
|
**!mixes**: post link to my fire mixtapes
|
||||||
|
**!rmix**: post link to a random mix of mine
|
||||||
**!sleep**: sleep for like 5 seconds for some reason
|
**!sleep**: sleep for like 5 seconds for some reason
|
||||||
**!pokeme**: make the bot poke you gently
|
**!pokeme**: make the bot poke you gently
|
||||||
**!switch**: display time until the switch comes out!
|
**!switch**: display time until the switch comes out!
|
||||||
|
|
|
@ -246,6 +246,12 @@ def on_message(message):
|
||||||
npem = discord.Embed(title="Now Playing on ToukuFM", description=output, url="https://toukufm.com/")
|
npem = discord.Embed(title="Now Playing on ToukuFM", description=output, url="https://toukufm.com/")
|
||||||
yield from client.send_message(message.channel, embed=npem)
|
yield from client.send_message(message.channel, embed=npem)
|
||||||
|
|
||||||
|
#Post a random mix
|
||||||
|
elif message.content.lower().startswith('!rmix'):
|
||||||
|
mixes = json.loads(requests.get("http://maki.pocketjawa.com/mixesjson/").text)
|
||||||
|
yield from client.send_message(message.channel, "http://maki.pocketjawa.com/mixes/" + random.choice(mixes)['name'])
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
client.loop.create_task(ups_check())
|
client.loop.create_task(ups_check())
|
||||||
client.run(token)
|
client.run(token)
|
Loading…
Reference in New Issue