Skip to content

Commit

Permalink
Merge pull request #162 from crimsobot/info-embed-update
Browse files Browse the repository at this point in the history
Updated >info embed
  • Loading branch information
h-anjru authored Jul 23, 2024
2 parents 05ab524 + 0ef8ede commit 613ccca
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
3 changes: 3 additions & 0 deletions config.example.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
# Discord bot token
TOKEN = None

# Permissions integer
PERMISSIONS_INTEGER = None

# Discord IDs
ADMIN_USER_IDS = {
310618614497804289, # crimso
Expand Down
13 changes: 4 additions & 9 deletions crimsobot/cogs/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import discord
from discord.ext import commands

from config import ADMIN_USER_IDS
from config import ADMIN_USER_IDS, PERMISSIONS_INTEGER
from crimsobot.bot import CrimsoBOT
from crimsobot.models.ban import Ban
from crimsobot.models.user import User
Expand Down Expand Up @@ -104,7 +104,7 @@ async def info(self, ctx: commands.Context) -> None:
# change permissions integer here if need be
auth_url = 'https://discordapp.com/api/oauth2/authorize?client_id={}&permissions={}&scope=bot'.format(
self.bot.user.id,
473300048
PERMISSIONS_INTEGER
)
embed = c.crimbed(
title='crimsoBOT info!',
Expand All @@ -113,7 +113,7 @@ async def info(self, ctx: commands.Context) -> None:
footer='Thanks for using crimsoBOT!'
)
embed.add_field(
name="crimsoBOT's Discord server",
name='Join the crimsoBOT server!',
value='https://discord.gg/Kj3WNHX',
inline=False
)
Expand All @@ -123,15 +123,10 @@ async def info(self, ctx: commands.Context) -> None:
inline=False
)
embed.add_field(
name='Support crimsoBOT server time, get a sticker!',
name='Support crimsoBOT server time, (maybe) get a sticker!',
value='https://www.patreon.com/crimso',
inline=False
)
embed.add_field(
name='Buy stickers and more *a la carte*!',
value='https://crimsobot-store.square.site/',
inline=False
)

await ctx.send(embed=embed)

Expand Down

0 comments on commit 613ccca

Please sign in to comment.