-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.py
More file actions
34 lines (23 loc) · 736 Bytes
/
main.py
File metadata and controls
34 lines (23 loc) · 736 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
import discord
import json
from discord.ext import commands
prefix = "!bx"
TOKEN = "Your-Bot-Token-Goes-Here"
client = discord.Client()
@client.event
async def on_ready():
await client.change_presence(activity=discord.Game(name= 'BLUExVENOM on YouTube'))
print("{0.user} is now online!".format(client))
@client.event
async def on_message(message):
if message.author == client.user:
return
if message.content.startswith('!bx Hello'):
await message.channel.send('Hello there!')
@client.event
async def on_message(message):
if message.author == client.user:
return
if message.content.startswith('!bx Bye'):
await message.channel.send('BYE')
client.run(TOKEN)