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==0.0.4

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.1.tar.gz (2.4 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.1-py3-none-any.whl (3.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: discordservices.py-0.0.1.tar.gz
  • Upload date:
  • Size: 2.4 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.1.tar.gz
Algorithm Hash digest
SHA256 0c9f766609e8b44e59bd9b1340dd33e9599b4d705d88c92233d4cb5786b213f2
MD5 901560e9c4a7405b2d9881c548087b99
BLAKE2b-256 d7ffb49bca735ee544eb800513b20764104d6641692aa0ee19fe01a9a31afffc

See more details on using hashes here.

File details

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

File metadata

  • Download URL: discordservices.py-0.0.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 de6194b92c60a46fd4bd9f9f7260b79e14f9355ab47ef074ad1874c7e1bfd887
MD5 ab1510a6387b9fb13f975b1e1993c182
BLAKE2b-256 fb080395e4b4d9f0b494ca5cef3b7b5b15958976e63d222ce7ac71fd6e62e8bb

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