-
Notifications
You must be signed in to change notification settings - Fork 9
/
help.py
102 lines (92 loc) · 3.82 KB
/
help.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
import discord
from discord.ext import commands
import user_db
import config
class Help(commands.Cog):
def __init__(self, bot):
self.bot = bot
@commands.command()
async def help(self, ctx):
user_id = str(ctx.author.id)
user_name = ctx.author.name
if not user_db.check_user(user_id):
user_db.add_user(user_id, user_name)
embed = discord.Embed(
title="**Sugar Bot Command List:**",
color=0x7152b6)
embed.set_author(
name=ctx.author.display_name,
icon_url=ctx.author.avatar_url_as(format='png', size=256))
embed.add_field(
name="**//help**",
value="This is the command you have just used :wink:",
inline=True)
embed.add_field(
name="**//info**",
value="Show Sugar Core wallet/blockchain info.",
inline=True)
embed.add_field(
name="**//balance**",
value="Show your Sugar balances.",
inline=True)
embed.add_field(
name="**//deposit**",
value="Show your Sugar deposit address.",
inline=True)
embed.add_field(
name="**//tip**",
value="Tip specified user. [//tip @BeeHIVE Network 1] to tip 1 SUGAR",
inline=True)
embed.add_field(
name="**//withdraw**",
value="Withdraw Sugar from your wallet. [//withdraw ADDRESS AMOUNT]",
inline=True)
embed.add_field(
name="**//withdrawall**",
value="Withdraw all Sugar from your wallet. [//withdrawall ADDRESS]",
inline=True)
embed.set_thumbnail(url=self.bot.user.avatar_url_as(format='png', size=1024))
embed.set_footer(text="TipBot v{0}".format(config.VERSION), icon_url=self.bot.user.avatar_url_as(format='png', size=256))
await ctx.channel.send(embed=embed)
else:
pass
embed = discord.Embed(
title="**Sugar Bot Command List:**",
color=0x7152b6)
embed.set_author(
name=ctx.author.display_name,
icon_url=ctx.author.avatar_url_as(format='png', size=256))
embed.add_field(
name="**//help**",
value="This is the command you have just used.",
inline=True)
embed.add_field(
name="**//info**",
value="Show Sugar Core wallet/blockchain info.",
inline=True)
embed.add_field(
name="**//balance**",
value="Show your Sugar balances.",
inline=True)
embed.add_field(
name="**//deposit**",
value="Show your Sugar deposit address.",
inline=True)
embed.add_field(
name="**//tip**",
value="Tip specified user. [//tip @BeeHIVE Network 1] to tip 1 SUGAR",
inline=True)
embed.add_field(
name="**//withdraw**",
value="Withdraw Sugar from your wallet. [//withdraw ADDRESS AMOUNT]",
inline=True)
embed.add_field(
name="**//withdrawall**",
value="Withdraw all Sugar from your wallet. [//withdrawall ADDRESS]",
inline=True)
embed.set_thumbnail(url=self.bot.user.avatar_url_as(format='png', size=1024))
embed.set_footer(text="TipBot v{0}".format(config.VERSION), icon_url=self.bot.user.avatar_url_as(format='png', size=256))
await ctx.channel.send(embed=embed)
def setup(bot):
bot.remove_command('help')
bot.add_cog(Help(bot))