Skip to content

askovpen/discord_simple

Repository files navigation

discord_simple

PyPi Package Version Supported python versions Travis CI Status

Installing

$ pip install discord_simple --upgrade

Usage

import discord_simple

bot=None

def on_connect(user):
  print("connected as "+user)
def on_message(message):
  print("message from {}: {}".format(message.author,message.content))

bot = discord_simple.Bot("your token",on_connect=on_connect,on_message=on_message)
bot.forever_loop()

API

User

  • id
  • avatar
  • username
  • discriminator

Message

  • author : User
  • content : Message text
  • timestamp

Methods

  • send_message('username#discriminator','message')

About

Simple Discord Python API

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages