just another discord api wrapper for writing bots
Python 3.6 or higher is required.
python -m pip install fastcord
To install the latest development version (might not be stable):
git clone https://github.com/dskprt/fastcord.git
cd fastcord
python -m pip install .
import fastcord
bot = fastcord.Fastcord("TOKEN")
@bot.on_event("message")
def on_message(msg):
if msg.content == "!ping":
msg.channel.send("Pong!")
bot.run()
More examples are available in the examples
directory.