black formatting
This commit is contained in:
parent
240b72bbd3
commit
6d8ad929b3
|
@ -2,6 +2,7 @@ from .leveler import Leveler
|
|||
|
||||
__red_end_user_data_statement__ = "Stores some level info like experience, profile description/picture, and message ID of user's last message in guild."
|
||||
|
||||
|
||||
def setup(bot):
|
||||
n = Leveler(bot)
|
||||
bot.add_listener(n.listener, "on_message")
|
||||
|
|
|
@ -2,6 +2,7 @@ from .activitylog import ActivityLogger
|
|||
|
||||
__red_end_user_data_statement__ = "Depending on setup, can log user messages, voice channel activity, audit actions in guilds, activity statistics per guild, user name changes, and any moderation actions per guild."
|
||||
|
||||
|
||||
async def setup(bot):
|
||||
n = ActivityLogger(bot)
|
||||
await n.initialize()
|
||||
|
|
|
@ -2,5 +2,6 @@ from .birthday import Birthday
|
|||
|
||||
__red_end_user_data_statement__ = "This cog will store a user's birthday."
|
||||
|
||||
|
||||
def setup(bot):
|
||||
bot.add_cog(Birthday(bot))
|
||||
|
|
|
@ -10,6 +10,7 @@ import datetime
|
|||
import discord
|
||||
from typing import Literal
|
||||
|
||||
|
||||
class Birthday(commands.Cog):
|
||||
"""Track birthdays, add birthday role, and annouce birthdays for users."""
|
||||
|
||||
|
|
|
@ -2,6 +2,7 @@ from .confession import Confession
|
|||
|
||||
__red_end_user_data_statement__ = "This cog won't store anything for a user."
|
||||
|
||||
|
||||
def setup(bot):
|
||||
n = Confession()
|
||||
bot.add_cog(n)
|
||||
|
|
|
@ -6,6 +6,7 @@ import contextlib
|
|||
import discord
|
||||
import asyncio
|
||||
|
||||
|
||||
class Confession(commands.Cog):
|
||||
def __init__(self):
|
||||
self.config = Config.get_conf(self, identifier=665235, force_registration=True)
|
||||
|
|
|
@ -2,5 +2,6 @@ from .manager import CostManager
|
|||
|
||||
__red_end_user_data_statement__ = "This cog won't store anything for a user."
|
||||
|
||||
|
||||
def setup(bot):
|
||||
bot.add_cog(CostManager(bot))
|
||||
|
|
|
@ -2,5 +2,6 @@ from .disable import Disable
|
|||
|
||||
__red_end_user_data_statement__ = "This cog won't store any data for users."
|
||||
|
||||
|
||||
def setup(bot):
|
||||
bot.add_cog(Disable(bot))
|
||||
|
|
|
@ -2,5 +2,6 @@ from . import core
|
|||
|
||||
__red_end_user_data_statement__ = "This cog only stores internal variables per user."
|
||||
|
||||
|
||||
def setup(bot):
|
||||
bot.add_cog(core.EconomyTrickle(bot))
|
||||
|
|
|
@ -2,5 +2,6 @@ from .core import EveryoneEmoji
|
|||
|
||||
__red_end_user_data_statement__ = "This cog stores no data."
|
||||
|
||||
|
||||
def setup(bot):
|
||||
bot.add_cog(EveryoneEmoji(bot))
|
||||
|
|
|
@ -8,6 +8,7 @@ import discord
|
|||
from redbot.core import commands, checks
|
||||
from typing import Literal
|
||||
|
||||
|
||||
class EveryoneEmoji(commands.Cog):
|
||||
|
||||
"""Allows anyone to use all emojis the bot can see!"""
|
||||
|
|
|
@ -2,6 +2,7 @@ from .isolate import Isolate
|
|||
|
||||
__red_end_user_data_statement__ = "This cog stores members who are currently isolated for moderation purposes."
|
||||
|
||||
|
||||
async def setup(bot):
|
||||
isolate = Isolate(bot)
|
||||
await isolate.initialize()
|
||||
|
|
|
@ -2,5 +2,6 @@ from .markov import Markov
|
|||
|
||||
__red_end_user_data_statement__ = "This doesn't store any user data."
|
||||
|
||||
|
||||
def setup(bot):
|
||||
bot.add_cog(Markov(bot))
|
||||
|
|
|
@ -2,5 +2,6 @@ from .memeify import Memeify
|
|||
|
||||
__red_end_user_data_statement__ = "This cog does not store user data."
|
||||
|
||||
|
||||
def setup(bot):
|
||||
bot.add_cog(Memeify(bot))
|
||||
|
|
|
@ -2,5 +2,6 @@ from .moreadmin import MoreAdmin
|
|||
|
||||
__red_end_user_data_statement__ = "This will store a user's last few messages (depending on configuration)"
|
||||
|
||||
|
||||
def setup(bot):
|
||||
bot.add_cog(MoreAdmin(bot))
|
||||
|
|
|
@ -2,6 +2,7 @@ from .nitroemoji import NitroEmoji
|
|||
|
||||
__red_end_user_data_statement__ = "This cog will store a user's custom emojis in each guild."
|
||||
|
||||
|
||||
async def setup(bot):
|
||||
n = NitroEmoji(bot)
|
||||
await n.initialize()
|
||||
|
|
|
@ -2,5 +2,6 @@ from .personalroles import PersonalRoles
|
|||
|
||||
__red_end_user_data_statement__ = "This will store what a user's custom role is if they have one."
|
||||
|
||||
|
||||
def setup(bot):
|
||||
bot.add_cog(PersonalRoles(bot))
|
||||
|
|
|
@ -2,5 +2,6 @@ from .pony import Pony
|
|||
|
||||
__red_end_user_data_statement__ = "This doesn't store any user data."
|
||||
|
||||
|
||||
def setup(bot):
|
||||
bot.add_cog(Pony())
|
||||
|
|
|
@ -2,6 +2,7 @@ from .punish import Punish
|
|||
|
||||
__red_end_user_data_statement__ = "This will store who is currently punished in each guild."
|
||||
|
||||
|
||||
async def setup(bot):
|
||||
punish = Punish(bot)
|
||||
await punish.initialize()
|
||||
|
|
|
@ -305,7 +305,8 @@ class Punish(commands.Cog):
|
|||
[
|
||||
"**Reason:** %s" % (data.get("reason") or "no reason set"),
|
||||
"**Time remaining:** %s" % remaining,
|
||||
"**Moderator**: %s" % (user.guild.get_member(int(data.get("by"))) or "Missing ID#%s" % data.get("by")),
|
||||
"**Moderator**: %s"
|
||||
% (user.guild.get_member(int(data.get("by"))) or "Missing ID#%s" % data.get("by")),
|
||||
]
|
||||
)
|
||||
del punished[str(user.id)]
|
||||
|
|
|
@ -2,6 +2,7 @@ from .reactpoll import ReactPoll
|
|||
|
||||
__red_end_user_data_statement__ = "This cog won't store user data."
|
||||
|
||||
|
||||
def setup(bot):
|
||||
n = ReactPoll(bot)
|
||||
bot.add_cog(n)
|
||||
|
|
|
@ -2,6 +2,7 @@ from .core import RoleManagement
|
|||
|
||||
__red_end_user_data_statement__ = "This will only store sticky and subscribed roles for users."
|
||||
|
||||
|
||||
def setup(bot):
|
||||
cog = RoleManagement(bot)
|
||||
bot.add_cog(cog)
|
||||
|
|
|
@ -4,5 +4,6 @@ from redbot.core import Config
|
|||
|
||||
__red_end_user_data_statement__ = "No data is stored."
|
||||
|
||||
|
||||
def setup(bot):
|
||||
bot.add_cog(RolePlay(bot))
|
||||
|
|
|
@ -2,6 +2,7 @@ from .roletracker import RoleTracker
|
|||
|
||||
__red_end_user_data_statement__ = "This cog stores the users who have a trackable role."
|
||||
|
||||
|
||||
async def setup(bot):
|
||||
roletracker = RoleTracker(bot)
|
||||
await roletracker.initialize()
|
||||
|
|
|
@ -2,5 +2,6 @@ from .rules import Rules
|
|||
|
||||
__red_end_user_data_statement__ = "This only stores rules added by admins of guilds."
|
||||
|
||||
|
||||
def setup(bot):
|
||||
bot.add_cog(Rules(bot))
|
||||
|
|
|
@ -2,5 +2,6 @@ from .sfx import SFX
|
|||
|
||||
__red_end_user_data_statement__ = "This doesn't store any user data."
|
||||
|
||||
|
||||
def setup(bot):
|
||||
bot.add_cog(SFX(bot))
|
||||
|
|
|
@ -2,5 +2,6 @@ from .shootout import Shootout
|
|||
|
||||
__red_end_user_data_statement__ = "This cog won't store anything for a user."
|
||||
|
||||
|
||||
def setup(bot):
|
||||
bot.add_cog(Shootout(bot))
|
||||
|
|
|
@ -7,6 +7,7 @@ from redbot.core.utils.chat_formatting import *
|
|||
import asyncio, contextlib, discord, random, shlex
|
||||
from typing import Literal
|
||||
|
||||
|
||||
class Shootout(commands.Cog):
|
||||
default_config = {
|
||||
"cost": 50,
|
||||
|
|
|
@ -2,5 +2,6 @@ from .smartreact import SmartReact
|
|||
|
||||
__red_end_user_data_statement__ = "This doesn't store any user data."
|
||||
|
||||
|
||||
def setup(bot):
|
||||
bot.add_cog(SmartReact(bot))
|
||||
|
|
|
@ -3,6 +3,7 @@ from redbot.core import Config, commands, checks
|
|||
from redbot.core.utils.chat_formatting import pagify
|
||||
from typing import Literal
|
||||
|
||||
|
||||
class SmartReact(commands.Cog):
|
||||
"""Create automatic reactions when trigger words are typed in chat"""
|
||||
|
||||
|
|
|
@ -2,5 +2,6 @@ from .trickortreat import TrickorTreat
|
|||
|
||||
__red_end_user_data_statement__ = "This doesn't store any user data."
|
||||
|
||||
|
||||
def setup(bot):
|
||||
bot.add_cog(TrickorTreat(bot))
|
||||
|
|
|
@ -3,5 +3,6 @@ from .welcome import Welcome
|
|||
|
||||
__red_end_user_data_statement__ = "This cog doesn't store any user data."
|
||||
|
||||
|
||||
def setup(bot: Red):
|
||||
bot.add_cog(Welcome(bot=bot))
|
||||
|
|
Loading…
Reference in New Issue