Skip to content

Commit 53c4c52

Browse files
committed
Tempate v2.4.1
* Added config import to moderation cog
1 parent 5575d50 commit 53c4c52

File tree

6 files changed

+13
-1
lines changed

6 files changed

+13
-1
lines changed

UPDATES.md

+3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
# Updates List
22
Here is the list of all the updates that I made on this template.
33

4+
### Version 2.4.1
5+
* Added config import to moderation cog
6+
47
### Version 2.4
58
* Added some fun commands
69
* Colors are saved in the [config file](config.py) for easier usage

bot.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,13 @@
33
Description:
44
This is a template to create your own discord bot in python.
55
6-
Version: 2.4
6+
Version: 2.4.1
77
"""
88

99
import discord, asyncio, os, platform, sys
1010
from discord.ext.commands import Bot
1111
from discord.ext import commands
12+
1213
if not os.path.isfile("config.py"):
1314
sys.exit("'config.py' not found! Please add it and try again.")
1415
else:

cogs/general.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import os, sys, discord, platform, random, aiohttp, json
22
from discord.ext import commands
3+
34
if not os.path.isfile("config.py"):
45
sys.exit("'config.py' not found! Please add it and try again.")
56
else:

cogs/help.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import os, sys, discord
22
from discord.ext import commands
3+
34
if not os.path.isfile("config.py"):
45
sys.exit("'config.py' not found! Please add it and try again.")
56
else:

cogs/moderation.py

+5
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
import os, sys, discord
22
from discord.ext import commands
33

4+
if not os.path.isfile("config.py"):
5+
sys.exit("'config.py' not found! Please add it and try again.")
6+
else:
7+
import config
8+
49
class moderation(commands.Cog, name="moderation"):
510
def __init__(self, bot):
611
self.bot = bot

cogs/owner.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import os, sys, discord
22
from discord.ext import commands
3+
34
if not os.path.isfile("config.py"):
45
sys.exit("'config.py' not found! Please add it and try again.")
56
else:

0 commit comments

Comments
 (0)