Example Scripts
Posts Bot Stats
import ibl
import discord
from discord.ext import commands
bot = commands.Bot(command_prefix="! ")
@bot.event
async def on_ready():
print('Bot online')
@bot.command()
@commands.is_owner()
async def poststats(ctx):
await ibl.post_stats(bot.user.id, "infinity_auth_token", len(bot.guilds),
number_of_shards)
await ctx.send('Bot stats posted')
bot.run("discord_bot_token")Bot Info Command
User Info Command
Last updated
Was this helpful?