Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import nextcord
- from nextcord.ext import commands
- from config import PREFIX, TOKEN # this is where i kept the prefix/token. i.e. PREFIX=">", TOKEN="1234567890"
- import random
- response = ["Yes.", "No.", "Bleugh.", "Hohoho.", "*flips newspaper* Shh."]
- client = commands.Bot(command_prefix=PREFIX, case_insensitive=False)
- client.remove_command("help")
- @client.event
- async def on_ready():
- print(Logged in as {client.user}')
- @client.event
- async def on_message(message):
- messageContent = message.content.lower()
- if message.author == client.user:
- return
- if messageContent.startswith(PREFIX):
- await message.channel.send(random.choice(response))
- client.run(TOKEN)
- https://www.youtube.com/watch?v=II8oHa5bIps
Add Comment
Please, Sign In to add comment