how to code discord bot 8ball python

Solutions on MaxInterview for how to code discord bot 8ball python by the best coders in the world

showing results for - "how to code discord bot 8ball python"
Valentine
28 Sep 2018
1@client.command(name='8ball',
2            description="Answers a yes/no question.",
3            brief="Answers from the beyond.",
4            aliases=['eight_ball', 'eightball', '8-ball'],
5            pass_context=True)
6
7async def eight_ball(context):
8    possible_responses = [
9
10        'That is a resounding no',
11        'It is not looking likely',
12        'Too hard to tell',
13        'It is quite possible',
14        'Definitely',
15        'Maybe so.'
16
17    ]
18    await context.channel.send(random.choice(possible_responses) + ", " + context.message.author.mention)
19
similar questions
queries leading to this page
how to code discord bot 8ball python