| Conditions | 2 |
| Total Lines | 26 |
| Code Lines | 18 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | import os |
||
| 24 | @commands.command() |
||
| 25 | async def info(self, ctx, args: str = None): |
||
| 26 | """ |
||
| 27 | Info about the bot. |
||
| 28 | """ |
||
| 29 | if str != "short": |
||
| 30 | embed = discord.Embed( |
||
| 31 | title="ISA_bot", |
||
| 32 | color=0xA8000D, |
||
| 33 | description="I'm a member of ISA family ❤️", |
||
| 34 | timestamp=datetime.datetime.utcnow(), |
||
| 35 | ) |
||
| 36 | embed.add_field(name="Command prefix", value="`!!`, `isa!`, `i!` or `@mention`") |
||
| 37 | embed.add_field( |
||
| 38 | name="\ud83c\udfa5Quick examples:", value="[Simple commands](https://i.imgur.com/BqgJZuQ.gif)" |
||
| 39 | ) |
||
| 40 | embed.add_field( |
||
| 41 | name="\ud83d\udd17 Bot source code", value="[Github Link](https://github.com/vinaydawani/ISA-bot)" |
||
| 42 | ) |
||
| 43 | embed.set_image(url="https://i.imgur.com/rO9MzrP.jpg") |
||
| 44 | embed.set_footer(text="Made by @External72#6969") |
||
| 45 | await ctx.send(embed=embed) |
||
| 46 | else: |
||
| 47 | await send_embedded(ctx, "[Github Link](https://github.com/vinaydawani/ISA-bot)") |
||
| 48 | |||
| 49 | await ctx.message.delete(delay=5) |
||
| 50 | |||
| 54 |