Advertisement
BenjaminPlays

Basic Discord Bot Command Starter

Apr 12th, 2021
686
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.35 KB | None | 0 0
  1. ##Sorry guys I haven't been pasting as much.. I will be pasting a ton of new scripts today! From Lua to Python.
  2.  
  3. import discord
  4. from discord.ext.commands import Bot
  5. from discord import Member
  6.  
  7. bot = Bot('!')
  8.  
  9. @bot.command(pass_context=True, name='status')
  10. async def status(ctx, member: Member):
  11.     await bot.say(str(member.status))
  12.  
  13. bot.run('token')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement