Help with the Bot DISCORD please
import discord
from discord.ext import commands
bot = commands.Bot(command_prefix = '!')
bot.remove_command('help')
@bot.event
async def on_ready():
print('Bot connected')
@bot.command()
async def text(ctx, * , arg):
await ctx.send(arg)
@bot.command()
async def arg (ctx, arg):
if 'hello' in arg:
await ctx.send('hi')
else:
pass
class MemberRoles(comands.MemberConverter):
async def conventr(self, ctx, argument):
member = await super().convert(ctx, argument)
return [role.name for role in member.roles[1:]] #Remove everyone role
@bot.command()
async def roles(ctx, *, member: MemberRoles):
"""Tells you a member's roles."""
await ctx.send('I see the following roles: '/', '.join(member))
token = 'Token'
bot.run(token)
0
-
Hey, I don't think this forum is for helping with Discord bot programming issues.
Best post that on developer communities.0 -
Please join https://discord.gg/discord-developers for general questions about the API.
Otherwise for specific Bot API questions, join https://discord.gg/discord-api
1
Please sign in to leave a comment.
Comments
2 comments