You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
*For the last major version's changelog, see [SizeBot 3½ Changelog](https://github.com/sizedev/SizeBot/blob/master/changelogs/3.5.md).*
4
+
5
+
*For the last minor version's changelog, see [SizeBot 3.9 Changelog](https://github.com/sizedev/SizeBot/blob/master/changelogs/3.9.md).*
6
+
7
+
We're now verified! This has come with some good and some bad, but I'll explain it all here!
8
+
9
+
## Slash Commands
10
+
- There is a new slash command, `/sb`. To use it, simply run `/sb`, and the the command you usually would after a prefix (for instance, `&stats` is now `/sb stats`.)
11
+
- More slash commands will come in the future! This is a stop-gap solution.
12
+
- You can still run commands like normal by **pinging the bot instead**, and right now that's the recommended way to run commands.
13
+
- For instance, `@SizeBot stats`.
14
+
15
+
## Triggers
16
+
-**Triggers are disabled** for the time being until we can work on a verified-bot-friendly solution.
awaitctx.send("You have nothing left to outgrow!")
182
182
return
183
183
obj=objs_larger[0]
184
+
name=obj.name
185
+
length=obj.unitlength
186
+
elifisinstance(obj, Member):
187
+
try:
188
+
userdata2=userdb.load(ctx.guild.id, obj.id)
189
+
name=userdata2.nickname
190
+
length=userdata2.height
191
+
exceptUserNotFoundException:
192
+
awaitctx.send("This user is not registered with SizeBot!")
193
+
return
194
+
ifnotuserdata2.allow_matching:
195
+
awaitctx.send("This user is does not allow others to match their height!")
196
+
return
197
+
else:
198
+
name=obj.name
199
+
length=obj.unitlength
184
200
185
-
ifobj.unitlength<userdata.height:
186
-
awaitctx.send(f"You're already larger than {obj.article}{obj.name}!")
201
+
iflength<userdata.height:
202
+
awaitctx.send(f"You're already larger than {obj.articleifhasattr(obj, 'article') else''}{name}!")
187
203
return
188
204
189
205
random_factor=Decimal(random.randint(11, 20) /10)
190
-
userdata.height=obj.unitlength*random_factor
206
+
userdata.height=length*random_factor
191
207
userdb.save(userdata)
192
208
193
-
awaitctx.send(f"You outgrew {obj.article} **{obj.name}** *({obj.unitlength:,.3mu})* and are now **{userdata.height:,.3mu}** tall!")
209
+
awaitctx.send(f"You outgrew {obj.articleifhasattr(obj, 'article') else''} **{name}** *({length:,.3mu})* and are now **{userdata.height:,.3mu}** tall!")
awaitctx.send("You have nothing left to outshrink!")
210
226
return
211
227
obj=objs_smaller[0]
228
+
name=obj.name
229
+
length=obj.unitlength
230
+
elifisinstance(obj, Member):
231
+
try:
232
+
userdata2=userdb.load(ctx.guild.id, obj.id)
233
+
name=userdata2.nickname
234
+
length=userdata2.height
235
+
exceptUserNotFoundException:
236
+
awaitctx.send("This user is not registered with SizeBot!")
237
+
return
238
+
ifnotuserdata2.allow_matching:
239
+
awaitctx.send("This user is does not allow others to match their height!")
240
+
return
241
+
else:
242
+
name=obj.name
243
+
length=obj.unitlength
212
244
213
-
ifobj.unitlength>userdata.height:
214
-
awaitctx.send(f"You're already smaller than {obj.article}{obj.name}!")
245
+
iflength>userdata.height:
246
+
awaitctx.send(f"You're already smaller than {obj.articleifhasattr(obj, 'article') else''}{name}!")
215
247
return
216
248
217
249
random_factor=Decimal(random.randint(11, 20) /10)
218
-
userdata.height=obj.unitlength/random_factor
250
+
userdata.height=length/random_factor
219
251
userdb.save(userdata)
220
252
221
-
awaitctx.send(f"You outshrunk {obj.article} **{obj.name}** *({obj.unitlength:,.3mu})* and are now **{userdata.height:,.3mu}** tall!")
253
+
awaitctx.send(f"You outshrunk {obj.articleifhasattr(obj, 'article') else''} **{name}** *({length:,.3mu})* and are now **{userdata.height:,.3mu}** tall!")
).set_author(name=f"Help [SizeBot {__version__}]").set_footer(text=f"See `{conf.prefix}help <command>` for more details about a command and how to use it.")
215
+
).set_author(name=f"Help [SizeBot {__version__}]").set_footer(text=f"See `help <command>` for more details about a command and how to use it.")
f"- (Use this [link](https://discord.com/oauth2/authorize?client_id={ctx.bot.application_id}&permissions=0&scope=applications.commands+bot) if you would like to manually manage the bot permissions).\n"
415
415
"If you need help, reach out to DigiDuncan (@digiduncan) and use `&help`! You can also go to this server for additional help: https://discord.gg/bbGjN8dTgk")
awaitctx.send(f"**SERVER-SET LOW CAPS AND HIGH CAPS:**\nLow Limit: {print_glow}\nHigh Limit: {print_ghigh}\n**USER-SET LOW CAPS AND HIGH CAPS:**\nLow Limit: {print_ulow}\nHigh Limit: {print_uhigh}")
0 commit comments