(topgg): Minor linting and wording changes.
This commit is contained in:
@@ -1,29 +1,30 @@
|
||||
import discord
|
||||
from .module import module
|
||||
from wards import guild_admin
|
||||
from bot.cmdClient.checks.global_perms import in_guild
|
||||
from bot.cmdClient.checks import in_guild, is_owner
|
||||
from settings.user_settings import UserSettings
|
||||
|
||||
from .webhook import on_dbl_vote
|
||||
from .utils import *
|
||||
from .utils import lion_loveemote
|
||||
|
||||
|
||||
@module.cmd(
|
||||
"forcevote",
|
||||
desc="Simulate Topgg Vote.",
|
||||
group="Guild Admin",
|
||||
aliases=('debugvote', 'topggvote')
|
||||
desc="Simulate a Topgg Vote from the given user.",
|
||||
group="Bot Admin",
|
||||
)
|
||||
@guild_admin()
|
||||
@is_owner()
|
||||
async def cmd_forcevote(ctx):
|
||||
"""
|
||||
Usage``:
|
||||
{prefix}forcevote
|
||||
Description:
|
||||
Simulate Topgg Vote without actually a confirmation from Topgg site.
|
||||
Simulate Top.gg vote without actually a confirmation from Topgg site.
|
||||
|
||||
Can be used for force a vote for testing or if topgg has an error or production time bot error.
|
||||
"""
|
||||
target = ctx.author
|
||||
|
||||
# Identify the target
|
||||
if ctx.args:
|
||||
if not ctx.msg.mentions:
|
||||
@@ -36,7 +37,7 @@ async def cmd_forcevote(ctx):
|
||||
|
||||
@module.cmd(
|
||||
"vote",
|
||||
desc="Get top.gg boost for 25% more LCs.",
|
||||
desc="[Vote](https://top.gg/bot/889078613817831495/vote) for me to get 25% more LCs!",
|
||||
group="Economy",
|
||||
aliases=('topgg', 'topggvote', 'upvote')
|
||||
)
|
||||
@@ -48,11 +49,12 @@ async def cmd_vote(ctx):
|
||||
Description:
|
||||
Get Top.gg bot's link for +25% Economy boost.
|
||||
"""
|
||||
target = ctx.author
|
||||
|
||||
embed=discord.Embed(
|
||||
embed = discord.Embed(
|
||||
title="Claim your boost!",
|
||||
description='Please click [here](https://top.gg/bot/889078613817831495/vote) vote and support our bot!\n\nThank you! {}.'.format(lion_loveemote),
|
||||
description=(
|
||||
"Please click [here](https://top.gg/bot/889078613817831495/vote) to vote and support our bot!\n\n"
|
||||
"Thank you! {}.".format(lion_loveemote)
|
||||
),
|
||||
colour=discord.Colour.orange()
|
||||
).set_thumbnail(
|
||||
url="https://cdn.discordapp.com/attachments/908283085999706153/933012309532614666/lion-love.png"
|
||||
@@ -72,5 +74,5 @@ async def cmd_remind_vote(ctx):
|
||||
`{prefix}vote_reminder off`
|
||||
|
||||
Enable or disable DM boost reminders.
|
||||
"""
|
||||
"""
|
||||
await UserSettings.settings.vote_remainder.command(ctx, ctx.author.id)
|
||||
|
||||
Reference in New Issue
Block a user