Skip to content

DiscordServices/discordservices.py

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

discordservices.py

A Simple Python API Wrapper for discordservices.net

Usage

Installation:

Via pip: pip install discordservices.py

With autopost:

import discord
import discordservices

from discord.ext import commands

bot = commands.Bot(command_prefix="!")
bot.dsclient = discordservices.DSClient(bot, 'apitoken', autopost=True) # default to False, if sets True it will autoposts every 900 seconds

bot.run('token')

Without autopost:

import discord
import discordservices

from discord.ext import commands

bot = commands.Bot(command_prefix="!")
bot.dsclient = discordservices.DSClient(bot, 'apitoken', autopost=False)

@bot.event
async def on_guild_join(guild):
    await bot.dsclient.post_count()
    print("Guild count posted")

bot.run('token')

About

A Simple Python API Wrapper for discordservices.net

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages