Compare commits
No commits in common. "f5d7121dfb315cc3ebf902a15a149a80109284bf" and "280df4f5e012a94d7bf656c3bb2c242a10dbd477" have entirely different histories.
f5d7121dfb
...
280df4f5e0
1 changed files with 3 additions and 16 deletions
19
bot.py
19
bot.py
|
@ -7,8 +7,8 @@ import traceback
|
||||||
import subprocess
|
import subprocess
|
||||||
import tempfile
|
import tempfile
|
||||||
import shutil
|
import shutil
|
||||||
|
import uuid
|
||||||
import asyncio
|
import asyncio
|
||||||
import platform
|
|
||||||
import sys
|
import sys
|
||||||
from typing import List, Dict, Set, Optional, Tuple, Any, Union, Callable, Coroutine, TypeVar, Type
|
from typing import List, Dict, Set, Optional, Tuple, Any, Union, Callable, Coroutine, TypeVar, Type
|
||||||
import logging
|
import logging
|
||||||
|
@ -459,17 +459,6 @@ async def ping(ctx: commands.Context) -> None:
|
||||||
|
|
||||||
await ctx.send(embed=LOLembed)
|
await ctx.send(embed=LOLembed)
|
||||||
|
|
||||||
def get_git_remote_url():
|
|
||||||
try:
|
|
||||||
url = subprocess.check_output(
|
|
||||||
["git", "config", "--get", "remote.origin.url"],
|
|
||||||
text=True,
|
|
||||||
stderr=subprocess.DEVNULL,
|
|
||||||
).strip()
|
|
||||||
return url
|
|
||||||
except subprocess.CalledProcessError:
|
|
||||||
return "Unknown"
|
|
||||||
|
|
||||||
# Command: Show about information
|
# Command: Show about information
|
||||||
@bot.hybrid_command(description=f"{(_('command_about_desc'))}")
|
@bot.hybrid_command(description=f"{(_('command_about_desc'))}")
|
||||||
async def about(ctx: commands.Context) -> None:
|
async def about(ctx: commands.Context) -> None:
|
||||||
|
@ -479,8 +468,7 @@ async def about(ctx: commands.Context) -> None:
|
||||||
embed: discord.Embed = discord.Embed(title=f"{(_('command_about_embed_title'))}", description="", color=Colour(0x000000))
|
embed: discord.Embed = discord.Embed(title=f"{(_('command_about_embed_title'))}", description="", color=Colour(0x000000))
|
||||||
embed.add_field(name=f"{(_('command_about_embed_field1'))}", value=f"{NAME}", inline=False)
|
embed.add_field(name=f"{(_('command_about_embed_field1'))}", value=f"{NAME}", inline=False)
|
||||||
embed.add_field(name=f"{(_('command_about_embed_field2name'))}", value=f"{(_('command_about_embed_field2value')).format(local_version=local_version, latest_version=latest_version)}", inline=False)
|
embed.add_field(name=f"{(_('command_about_embed_field2name'))}", value=f"{(_('command_about_embed_field2value')).format(local_version=local_version, latest_version=latest_version)}", inline=False)
|
||||||
embed.add_field(name=f"Git", value=get_git_remote_url())
|
embed.add_field(name=f"Github", value=f"https://github.com/gooberinc/goober")
|
||||||
embed.add_field(name=f"OS", value=platform.platform())
|
|
||||||
|
|
||||||
await send_message(ctx, embed=embed)
|
await send_message(ctx, embed=embed)
|
||||||
|
|
||||||
|
@ -502,8 +490,7 @@ async def stats(ctx: commands.Context) -> None:
|
||||||
embed.add_field(name=f"{(_('command_stats_embed_field1name'))}", value=f"{(_('command_stats_embed_field1value')).format(file_size=file_size, line_count=line_count)}", inline=False)
|
embed.add_field(name=f"{(_('command_stats_embed_field1name'))}", value=f"{(_('command_stats_embed_field1value')).format(file_size=file_size, line_count=line_count)}", inline=False)
|
||||||
embed.add_field(name=f"{(_('command_stats_embed_field2name'))}", value=f"{(_('command_stats_embed_field2value')).format(local_version=local_version, latest_version=latest_version)}", inline=False)
|
embed.add_field(name=f"{(_('command_stats_embed_field2name'))}", value=f"{(_('command_stats_embed_field2value')).format(local_version=local_version, latest_version=latest_version)}", inline=False)
|
||||||
embed.add_field(name=f"{(_('command_stats_embed_field3name'))}", value=f"{(_('command_stats_embed_field3value')).format(NAME=NAME, PREFIX=PREFIX, ownerid=ownerid, PING_LINE=PING_LINE, showmemenabled=showmemenabled, USERTRAIN_ENABLED=USERTRAIN_ENABLED, song=song, splashtext=splashtext)}", inline=False)
|
embed.add_field(name=f"{(_('command_stats_embed_field3name'))}", value=f"{(_('command_stats_embed_field3value')).format(NAME=NAME, PREFIX=PREFIX, ownerid=ownerid, PING_LINE=PING_LINE, showmemenabled=showmemenabled, USERTRAIN_ENABLED=USERTRAIN_ENABLED, song=song, splashtext=splashtext)}", inline=False)
|
||||||
embed.add_field(name=f"OS", value=platform.platform())
|
|
||||||
embed.add_field(name="Python Version", value=platform.python_version())
|
|
||||||
await send_message(ctx, embed=embed)
|
await send_message(ctx, embed=embed)
|
||||||
|
|
||||||
# Command: Upload memory.json to litterbox.catbox.moe and return the link
|
# Command: Upload memory.json to litterbox.catbox.moe and return the link
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue