-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbot.py
More file actions
15 lines (14 loc) · 804 Bytes
/
bot.py
File metadata and controls
15 lines (14 loc) · 804 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import discord
import asyncio
import os
import random, requests
from discord.ext import commands
client = discord.Client()
@client.event
async def on_message(message):
if message.author == client.user:
return
if message.content == '!EDIT THIS TO WHATEVER YOU WANT': #You can change !help to whatever you want. Make sure it has a prefix like "!" in front of it. If you need more commands and responses from the bot, just copy and paste this line plus the next two as many times as you want. Do NOT forget to change the command each time!
response = "Edit this too!"
await message.channel.send(response)
client.run("TOKEN") #Make sure that your bot token value is surrounded by quotes. In other words, replace the TOKEN value with your actual bot token value.