semvec/pypi-packages huggingface dataset:
discordon 2.3.5
A async fast and new discord api wrapper! It is recommended to not use any version below 2.1.3
License: MIT

# Discordon
A async fast and new discord api wrapper!

### Installation
```
pip install discordon
```
### Getting Started
A small example on how to make a discord-bot using discordon
```Python
import discordon

#creates a bot class
bot = discordon.Bot("bot token")

#a function that will trigger when bots goes online
def when_online(data):
    print("bot is online!")

#a function that will trigger when a message is sent
def on_message(msg):
    if msg['content'].lower() == "hi":
        bot.send(msg['channel_id'], "hello there!")


#making a dictionary with all events
events = {
    'READY': when_online,
    'MESSAGE_CREATE': on_message
}

#runs your bot!
bot.run(triggers=events)
```