from discord.ext import commands import random import asyncio import json import datetime import aiohttp import requests import logging if not discord.opus.is_loaded(): from .utils import config from .utils import checks import re import pendulum import rethinkdb as r client = discord.client() client_prefix= "b:" client = commands.client(command_prefix=client_prefix) @client.event async def on_ready(): print("Bolt is online!") print('Bolt is connected to '+str(len(client.servers))+' servers') #Extra 1 await client.change_presence(game=discord.Game(name='b:help | '+str(len(client.servers))+' servers')) # - General Commands #generalcommand @client.command(pass_context = True) async def serverinfo(ctx):
import discord from discord.ext.commands import bot from discord import game from discord.ext import commands import asyncio import platform import colorsys import random import time client = commands.Bot(command_prefix='+', case_insensitive=True) Client = discord.client(782859586281275422) Client = discord.client(782859586281275422) Clientdiscord = discord.Client(782859586281275422) @client.event async def on_ready(): print('Logged in as ' + client.user.name + ' (ID:' + client.user.id + ') | Connected to ' + str(len(client.servers)) + ' servers | Connected to ' + str(len(set(client.get_all_members()))) + ' users') print('--------') print('--------') print('CREATED AND HOSTED BY SUBHANKAR DAS') @client.command(pass_context=True) @commands.has_permissions(kick_members=True) async def userinfo(ctx, user: discord.Member): r, g, b = tuple(