-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbot.py
54 lines (35 loc) · 1.63 KB
/
bot.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
52
53
54
###############################################################################
# Rudra is a Discord autodelete bot.
# Copyright (C) 2022 Gouenji Shuuya
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published
# by the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.
# The online repository may be found at <github.com/gouenji-shuuya/rudra>.
###############################################################################
# Import standard library dependencies.
import os
# Import Pycord stuff.
import discord
# Import main class.
from Rudra.rudra import Rudra
# Set intents.
only_imp_intent = discord.Intents.none()
only_imp_intent.message_content = True
only_imp_intent.guild_messages = True
only_imp_intent.guilds = True
discord_cache_flags = discord.MemberCacheFlags.from_intents(only_imp_intent)
# Set up the bot.
bot = Rudra(command_prefix="hhm ", intents=only_imp_intent,
member_cache_flags=discord_cache_flags,
owner=os.environ["OWNER_DEVANAGARI"])
bot.load_extension("Aajnaa.aajnaa_cog")
bot.run(os.environ["TOKEN_BOT"])
print("Logged out.") # After run completes.
# End of file.