Skip to main content

A simple API wrapper for discordservices.net

Project description

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')

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

discordservices.py-0.0.2.tar.gz (2.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

discordservices.py-0.0.2-py3-none-any.whl (3.9 kB view details)

Uploaded Python 3

File details

Details for the file discordservices.py-0.0.2.tar.gz.

File metadata

  • Download URL: discordservices.py-0.0.2.tar.gz
  • Upload date:
  • Size: 2.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.2

File hashes

Hashes for discordservices.py-0.0.2.tar.gz
Algorithm Hash digest
SHA256 740ce5c9407413f5c0e17ee83ce8b4f73f26611507a13e7d3f78239d7f98a086
MD5 d06fc375caada7dd20f30e2a9097d08b
BLAKE2b-256 86ada4a56b6fc0d6e8a9c4950c1aae9aa1dcedefaafe6af958cf7eaf1bcdadb7

See more details on using hashes here.

File details

Details for the file discordservices.py-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: discordservices.py-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 3.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.2

File hashes

Hashes for discordservices.py-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 c7d76008e14d798068159ea8f367da74011ec3253ba22db8219c26c2c3a163b7
MD5 b3e6e02cd893b8605846c1ec36fac4c5
BLAKE2b-256 206928072e796d3d36e2d8c75dfa9cd2b0b0e18cec0bf6cb18161bec66591c31

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page