NotChampion / Shitcord

A framework to interact with the Discord API.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

~~ Shitcord ~~

A shitty, probably not even that shitty Discord API wrapper.

       

Though this library is incomplete yet, contributions are very appreciated!

Installation

For now, you can only install the dev branch which is constantly updated.

pip install -U https://github.com/itsVale/Shitcord/archive/dev.zip

Shitcord already features the REST API and also the Discord Gateway. Though the lib is very incomplete at this moment what you can see from the code below.

Usage

import shitcord

client = shitcord.Client()


@client.on('message')
def on_message(event):
    content = event['content']
    channel = event['channel_id']
    
    if content.startswith('!ping'):
        client.api.create_message(channel, 'Pong!')
        
        
client.start('Token')

Support

Need help with something or just want to hang out with more or less cool guys? Join our cool Discord server!

About

A framework to interact with the Discord API.

License:GNU General Public License v3.0


Languages

Language:Python 100.0%