This repository was archived by the owner on Jul 16, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.py
51 lines (38 loc) · 1.45 KB
/
main.py
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
42
43
44
45
46
47
48
49
50
51
import discord
from discord.ext import commands
from utilityFunction.config import token
def get_prefix(bot, message):
prefixes = ['^']
if not message.guild:
return '?'
return commands.when_mentioned_or(*prefixes)(bot, message)
initial_extensions = ['cogs.admin',
'cogs.fun',
'cogs.hentai',
'cogs.imageFun',
'cogs.missc',
'cogs.owner',
'cogs.reddit',
'cogs.redditNSFW',
'cogs.serverStuff',
'cogs.images',
'cogs.events',
'cogs.omevent'
]
bot = commands.Bot(command_prefix=get_prefix,
description="The Fragment's local femboy, Fembot!",
intents=discord.Intents.all()
)
class MyNewHelp(commands.MinimalHelpCommand):
async def send_pages(self):
destination = self.get_destination()
for page in self.paginator.pages:
emby = discord.Embed(description=page)
emby.color = discord.Color.magenta()
emby.set_thumbnail(url='https://i.imgur.com/fYonsqN.jpg')
await destination.send(embed=emby)
bot.help_command = MyNewHelp()
if __name__ == '__main__':
for extension in initial_extensions:
bot.load_extension(extension)
bot.run(token, bot=True, reconnect=True)