Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import discord
- import logging
- logging.basicConfig(level=logging.INFO)
- TOKEN = 'NDMyNDcxMzcwNzQ4OTE5ODA4.DawOog.WKcrS8lPPVRUbfhHMffBULtekYs'
- client = discord.Client()
- @client.event
- async def on_message(message):
- # we do not want the bot to reply to itself
- if message.author == client.user:
- return
- simpleResponses = {
- '!hello': 'Hello {0.author.mention}'.format(message),
- '420': 'jajajajajaja marijuana', 'duty': "haha you said duty",
- 'show me something vulgar sir': '''...............…………………………._¸„„„„_ \n…………………….…………...„--~*'¯…….'\ \n………….…………………… („-~~--„¸_….,/ì'Ì \n…….…………………….¸„-^"¯ : : : : :¸-¯"¯/' \n……………………¸„„-^"¯ : : : : : : : '\¸„„,-" \n**¯¯¯'^^~-„„„----~^*'"¯ : : : : : : : : : :¸-" \n.:.:.:.:.„-^" : : : : : : : : : : : : : : : : :„-" \n:.:.:.:.:.:.:.:.:.:.: : : : : : : : : : ¸„-^¯ \n.::.:.:.:.:.:.:.:. : : : : : : : ¸„„-^¯ \n:.' : : '\ : : : : : : : ;¸„„-~" \n:.:.:: :"-„""***/*'ì¸'¯ \n:.': : : : :"-„ : : :"\ \n.:.:.: : : : :" : : : : \, \n:.: : : : : : : : : : : : 'Ì \n: : : : : : :, : : : : : :/ \n"-„_::::_„-*__„„~"\nhaha its a penis thats funny'''
- }
- for validInput in simpleResponses:
- if validInput in message.content:
- msg = simpleResponses[validInput]
- await client.send_message(message.channel, msg)
- if message.content.startswith('!greet'):
- await client.send_message(message.channel, 'Say hello')
- msg = await client.wait_for_message(author=message.author, content='hello')
- await client.send_message(message.channel, 'Hello.')
- @client.event
- async def on_ready():
- print('Logged in as')
- print(client.user.name)
- print(client.user.id)
- print('------')
- client.run(TOKEN)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement