Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #UPDATED FOR REWRITE VERSION OF DISCORD.
- import random
- import discord
- from discord.ext import commands
- prefix = "?"
- bot = commands.Bot(command_prefix = prefix)
- @bot.event
- async def on_ready():
- print("The bot is ready!")
- @bot.command(pass_context = True)
- async def Hello(ctx):
- await ctx.send(random.randint(1,101))
- bot.run("put bot token here")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement