Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

discordpy

import discord

class MyClient(discord.Client):
    async def on_ready(self):
        print('Logged on as {0}!'.format(self.user))

    async def on_message(self, message):
        print('Message from {0.author}: {0.content}'.format(message))

client = MyClient()
client.run(TOKEN)
# https://discord.com/developers/applications
Source by discordpy.readthedocs.io #
 
PREVIOUS NEXT
Tagged: #discordpy
ADD COMMENT
Topic
Name
5+8 =