|
|
@ -1,6 +1,5 @@
|
|
|
|
import asyncio
|
|
|
|
import asyncio
|
|
|
|
import datetime
|
|
|
|
import datetime
|
|
|
|
import random
|
|
|
|
|
|
|
|
from contextlib import closing
|
|
|
|
from contextlib import closing
|
|
|
|
from typing import Optional
|
|
|
|
from typing import Optional
|
|
|
|
|
|
|
|
|
|
|
@ -9,7 +8,7 @@ import mariadb
|
|
|
|
from decouple import config
|
|
|
|
from decouple import config
|
|
|
|
from discord import Embed
|
|
|
|
from discord import Embed
|
|
|
|
from discord.ext import commands, tasks
|
|
|
|
from discord.ext import commands, tasks
|
|
|
|
from discord.ext.commands import when_mentioned_or, is_owner, guild_only, has_permissions, cooldown, BucketType
|
|
|
|
from discord.ext.commands import when_mentioned_or, is_owner, guild_only, has_permissions
|
|
|
|
|
|
|
|
|
|
|
|
import db
|
|
|
|
import db
|
|
|
|
import settings
|
|
|
|
import settings
|
|
|
@ -171,15 +170,6 @@ async def leave(ctx):
|
|
|
|
await ctx.guild.leave()
|
|
|
|
await ctx.guild.leave()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@client.command()
|
|
|
|
|
|
|
|
@guild_only()
|
|
|
|
|
|
|
|
@cooldown(1, 300, BucketType.guild)
|
|
|
|
|
|
|
|
async def someone(ctx):
|
|
|
|
|
|
|
|
"""Tags Someone Randomly in the Server"""
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
await ctx.send(random.choice(tuple(member.mention for member in ctx.guild.members if not member.bot)))
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@client.command(name='help')
|
|
|
|
@client.command(name='help')
|
|
|
|
async def _help(ctx, *, command: str = None):
|
|
|
|
async def _help(ctx, *, command: str = None):
|
|
|
|
"""Shows help about a command or the bot"""
|
|
|
|
"""Shows help about a command or the bot"""
|
|
|
@ -609,4 +599,13 @@ async def colour_change_before():
|
|
|
|
role_to_change = get(guild.roles, name=role_name)
|
|
|
|
role_to_change = get(guild.roles, name=role_name)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
colour_change.start()"""
|
|
|
|
colour_change.start()
|
|
|
|
|
|
|
|
@client.command()
|
|
|
|
|
|
|
|
@guild_only()
|
|
|
|
|
|
|
|
@cooldown(1, 300, BucketType.guild)
|
|
|
|
|
|
|
|
async def someone(ctx):
|
|
|
|
|
|
|
|
""""""Tags Someone Randomly in the Server""""""
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
await ctx.send(random.choice(tuple(member.mention for member in ctx.guild.members if not member.bot)))
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
"""
|
|
|
|