lostark-bot/bot.py
2022-02-13 21:38:04 +02:00

26 lines
651 B
Python

import discord
client = discord.Client()
@client.event
async def on_ready():
print("We have logged in as {0.user}".format(client))
@client.event
async def on_message(message):
if message.author == client.user:
return
if message.channel.id != message.author.dm_channel.id:
return
if message.content.startswith("+"):
# SUB
await message.channel.send("Subscribed to " + message.content[1:])
if message.content.startswith("-"):
#UNSUB
await message.channel.send("Unsubscribed from " + message.content[1:])
client.run("OTQyNDk2ODcwMzQ3OTk3MjQ1.YglWnA.XWmDCAuqtaLYKArJPxgyKscxB_8")