Skip to content

Commit

Permalink
Update main.py
Browse files Browse the repository at this point in the history
  • Loading branch information
TheGamer3514 authored Feb 18, 2023
1 parent 5541e2d commit 07e7489
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,21 +48,13 @@
print("pyjokes Not Found...\nInstalling...")
os.system("pip install pyjokes")
print("pyjokes Installed")
try:
import os
import dbots
except ImportError:
print("dbots Not Found...\nInstalling...")
os.system("pip install dbots")
print("dbots Installed")
#import Modules
import os
import urllib.request
from datetime import datetime
import asyncio
import discord
import shutil
import dbots
import pytz
import string
import discord_webhook
Expand Down Expand Up @@ -103,14 +95,6 @@
bot = commands.Bot(command_prefix = c['prefix'],intents=intents,status=discord.Status.idle,case_insensitive=True)
bot.remove_command('help')
#Stats Posting
poster = dbots.ClientPoster(bot, 'discord.py', api_keys = {
'top.gg': 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjEwNTExOTk0ODUxNjgwNjY2MTAiLCJib3QiOnRydWUsImlhdCI6MTY3NjMwNjkzNn0.FoalNHkLE8Al5DYWsmqyx2CteNF8rNdz5I8aZl9gElk',
'discord.bots.gg': 'eyJhbGciOiJIUzI1NiJ9.eyJhcGkiOnRydWUsImlkIjoiNzYzNDcxMDQ5ODk0NTI3MDA2IiwiaWF0IjoxNjc2MzA2ODc3fQ.yPCMYrhGpmaC5XDE_c1HfJxCOb6TZD7OU2Db5DGDxvc',
'discordbotlist.com': 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0IjoxLCJpZCI6IjEwNTExOTk0ODUxNjgwNjY2MTAiLCJpYXQiOjE2NzYzMDcyODZ9.7Q6gK8u3IqSsQhkscJkTZAGjUjau5SnlYcgg0R70v8k'
})
@poster.event
async def on_auto_post(response):
print('Auto-Post:', response)
#Ptero Api
api = PterodactylClient('https://panel.sillydev.co.uk', c['ptero_account_key'])
#Load Server File
Expand Down Expand Up @@ -174,9 +158,6 @@ async def Webhooklogging(channel,message):
async def on_ready():
print(f'{bot.user} Is Now Online And Ready To Send Messages!')
await bot.loop.create_task(StatusChange())
await poster.post()
# This posts to all lists every 30 minutes
poster.start_loop()
#Event for when a message is sent
@bot.event
async def on_message(message):
Expand Down

0 comments on commit 07e7489

Please sign in to comment.