-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcommands_help.py
More file actions
199 lines (160 loc) · 6.18 KB
/
Copy pathcommands_help.py
File metadata and controls
199 lines (160 loc) · 6.18 KB
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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
import discord
###daodash embed
daodash_embed=discord.Embed(
title='DAO Dash Help',
description="""DAODash offers insights about your DAO’s health right here in Discord.
See below for the commands DAODash accepts.
Please enter any command followed by help to get more information on the command.
Example: !members help""",
color = discord.Colour.red()
)
daodash_embed.add_field(
name='!members',
value='returns a sorted list of active or inactive members in channel.',
inline=False
)
daodash_embed.add_field(
name='!multisig',
value="""returns the wallets and amounts of DAO tokens that were distributed from a specific
multisig address""",
inline=False
)
daodash_embed.add_field(
name='!snapshot',
value='# of wallet addresses who have voted in each of the last <x> snapshot votes',
inline=False
)
daodash_embed.add_field(
name='!activity',
value='returns a summary of users (who hold the requested roles) who have been active in specific time periods',
inline=False
)
daodash_embed.add_field(
name='!roles',
value='returns data around users acquiring a specific DAO Discord role',
inline=False
)
daodash_embed.add_field(
name='!soft_votes',
value='Get a high-level “snapshot” of soft-votes submitted through Discourse over a time period.',
inline=False
)
##member command embed
member_help_embed=discord.Embed(
title='Command: !members',
description="""returns a sorted list of active or inactive members in channel. The channel is specific to where the user is sending the message.""",
color = discord.Colour.red()
)
member_help_embed.add_field(
name='Syntax',
value='!members active|inactive [activity threshold] [roles]',
inline=False
)
member_help_embed.add_field(
name='Parameters:',
value="""[inactive|active] - determines whether active or inactive members will be returned.
[activity_threshold] - determine the # of days that a user hasn’t commented in the channel to be considered in active. Default is 30.
[discord_role(s)] - filters results to only include users with certain roles. Expression should be wrapped in quotes, roles separated by commas.""",
inline=False
)
member_help_embed.add_field(
name='Example',
value="""!members active 10 “Analytics Guild, Guest Pass”""",
inline=False
)
##multisig command embed
multisig_help_embed=discord.Embed(
title='Command: !multisig',
description="""returns the amounts of DAO token that were distributed from the multisig address""",
color = discord.Colour.red()
)
multisig_help_embed.add_field(
name='Syntax',
value='!multisig multisig_address start_date',
inline=False
)
multisig_help_embed.add_field(
name='Parameters:',
value="""multisig_address - eth address of the multisig in 0x format
[start_date] - filters transfers to only include transfers that occurred after this date. Formatted as yyyy-mm-dd. Default is 30 days prior to today. """,
inline=False
)
multisig_help_embed.add_field(
name='Example',
value="""!multisig 0xe7636c7ef670a3Bcf772D9d57244c9e88aD90437 2022-06-01""",
inline=False
)
##multisig command embed
snapshot_help_embed=discord.Embed(
title='Command: !snapshot',
description="""# of wallet addresses who have voted in each of the last <x> snapshot votes""",
color = discord.Colour.red()
)
snapshot_help_embed.add_field(
name='Syntax',
value='!snapshot [number_of_proposals]',
inline=False
)
snapshot_help_embed.add_field(
name='Parameters:',
value="""[number_of_proposals] - limits the results to the last number_of_proposals. Default is 5.""",
inline=False
)
snapshot_help_embed.add_field(
name='Example',
value="""!snapshot 10""",
inline=False
)
##multisig command embed
roles_help_embed=discord.Embed(
title='Command: !roles',
description="""Count of new users who were assigned/taken on this role in the last X months""",
color = discord.Colour.red()
)
roles_help_embed.add_field(
name='Syntax',
value='!roles [# of months] [discord_role(s)] ',
inline=False
)
roles_help_embed.add_field(
name='Parameters:',
value=""" [months] - number of months of datato include output
[discord_role(s)] - filters results to only include users with certain roles. Expression should be wrapped in quotes, roles separated by commas.""",
inline=False
)
roles_help_embed.add_field(
name='Example',
value="""!roles 2 “Analytics Guild, Guest Pass”""",
inline=False
)
roles_activity_embed=discord.Embed(
title='Command: !activity',
description="""This insight is focused on understanding more macro trends - understanding the overall pattern of engagement in DAO/specific role.""",
color = discord.Colour.red()
)
roles_activity_embed.add_field(
name='Syntax',
value='!activity [discord_role(s)] ',
inline=False
)
roles_activity_embed.add_field(
name='Parameters:',
value="""[discord_role(s)] - filters results to only include users with certain roles. Expression should be wrapped in quotes, roles separated by commas.""",
inline=False
)
roles_activity_embed.add_field(
name='Example',
value="""!activity “Analytics Guild, Writers Guild”""",
inline=False
)
##discourse embed
discourse_help_embed=discord.Embed(
title='Command: !soft_votes',
description="""Get a high-level “snapshot” of soft-votes submitted through Discourse over a time period.""",
color = discord.Colour.red()
)
discourse_help_embed.add_field(
name='Syntax',
value='!soft_votes [start-date] [end-date] (If no range, default is most recent month)',
inline=False
)