GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — SchedulerBot/main.py at main · DorianAarno/SchedulerBot Expand file tree/ Copy pathmain.pyMore file actions 41 lines (33 loc) · 1.21 KB / Copy pathmain.pyFile metadata and controls41 lines (33 loc) · 1.21 KB 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 from disnake import * from disnake.ext import commands import os, traceback from assets import functions as func from config import Token bot = commands.Bot(case_insensitive=True, command_prefix='.', intents=Intents.default()) @bot.event async def on_ready(): print('*********\nBot is Ready.\n*********') async def CheckAdmin(ctx): if ctx.author.guild_permissions.administrator: return True else: await ctx.send(embed=func.ErrorEmbed('Missing Permissions', 'You are missing permissions. You need to have `administrator` permission in order to use this bot.')) return False bot.remove_command('help') bot.check_once(CheckAdmin) @bot.command() async def ping(ctx): await ctx.send (f"📶 {round(bot.latency * 1000)}ms") @bot.event async def on_command_error(ctx,error): if isinstance(error, (commands.CommandNotFound, commands.CheckFailure)): return for file in os.listdir('./cogs'): if file.endswith('.py') and file != '__init__.py': try: bot.load_extension("cogs."+file[:-3]) print(f"{file[:-3]} Loaded successfully.") except: print(f"Unable to load {file[:-3]}.") print(traceback.format_exc()) bot.run(Token) |
| You are visitor 01402792 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |