mirror of
https://github.com/osmarks/autobotrobot
synced 2025-05-05 08:54:14 +00:00
grant bot self-esteem
This commit is contained in:
parent
24760c5baf
commit
bea67646b6
@ -119,7 +119,22 @@ class GeneralCommands(commands.Cog):
|
|||||||
|
|
||||||
@commands.command(help="Get some information about the bot.", aliases=["invite"])
|
@commands.command(help="Get some information about the bot.", aliases=["invite"])
|
||||||
async def about(self, ctx):
|
async def about(self, ctx):
|
||||||
await ctx.send("""**AutoBotRobot: The least useful Discord bot ever designed.**
|
taglines = [
|
||||||
|
"the superintelligent AI presently paperclipping you",
|
||||||
|
"in your walls",
|
||||||
|
"we know what you did",
|
||||||
|
"PRs welcome",
|
||||||
|
"the bot in the mainframe",
|
||||||
|
"now controlling the voices in your head",
|
||||||
|
"now verified 96% safe",
|
||||||
|
"it's sentient, so be nice to it",
|
||||||
|
"now based on category theory",
|
||||||
|
"do not press the button",
|
||||||
|
"deeply accursed Python",
|
||||||
|
"no better bot exists, will exist, or can exist in this universe",
|
||||||
|
"coming soon"
|
||||||
|
]
|
||||||
|
await ctx.send(f"""**AutoBotRobot: {random.choice(taglines)}.**
|
||||||
AutoBotRobot has many features, but not necessarily any practical ones.
|
AutoBotRobot has many features, but not necessarily any practical ones.
|
||||||
It can execute code via TIO.run, do reminders, print fortunes, bridge IRC, store data, and search things!
|
It can execute code via TIO.run, do reminders, print fortunes, bridge IRC, store data, and search things!
|
||||||
AutoBotRobot is open source - the code is available at <https://github.com/osmarks/AutoBotRobot> - and you could run your own instance if you wanted to and could get around the complete lack of user guide or documentation.
|
AutoBotRobot is open source - the code is available at <https://github.com/osmarks/AutoBotRobot> - and you could run your own instance if you wanted to and could get around the complete lack of user guide or documentation.
|
||||||
@ -180,6 +195,7 @@ AutoBotRobot is operated by gollark/osmarks.
|
|||||||
@commands.command(help="Highly advanced AI Asisstant.")
|
@commands.command(help="Highly advanced AI Asisstant.")
|
||||||
async def ai(self, ctx, *, query=None):
|
async def ai(self, ctx, *, query=None):
|
||||||
prompt = []
|
prompt = []
|
||||||
|
seen = set()
|
||||||
async for message in ctx.channel.history(limit=20):
|
async for message in ctx.channel.history(limit=20):
|
||||||
display_name = message.author.display_name
|
display_name = message.author.display_name
|
||||||
if message.author == self.bot.user:
|
if message.author == self.bot.user:
|
||||||
@ -193,6 +209,9 @@ AutoBotRobot is operated by gollark/osmarks.
|
|||||||
content = "[attachments]"
|
content = "[attachments]"
|
||||||
if not content:
|
if not content:
|
||||||
continue
|
continue
|
||||||
|
if message.author == self.bot.user:
|
||||||
|
if content in seen: continue
|
||||||
|
seen.add(content)
|
||||||
prompt.append(f"{display_name}: {content}\n\n")
|
prompt.append(f"{display_name}: {content}\n\n")
|
||||||
if sum(len(x) for x in prompt) > util.config["ai"]["max_len"]:
|
if sum(len(x) for x in prompt) > util.config["ai"]["max_len"]:
|
||||||
break
|
break
|
||||||
|
@ -30,7 +30,7 @@ intents.members = True
|
|||||||
intents.presences = True
|
intents.presences = True
|
||||||
intents.message_content = True
|
intents.message_content = True
|
||||||
|
|
||||||
bot = commands.Bot(command_prefix=commands.when_mentioned_or(config["prefix"]), description="AutoBotRobot, the most useless bot in the known universe." + util.config.get("description_suffix", ""),
|
bot = commands.Bot(command_prefix=commands.when_mentioned_or(config["prefix"]), description="AutoBotRobot, the omniscient, omnipotent, omnibenevolent Discord bot by gollark." + util.config.get("description_suffix", ""),
|
||||||
case_insensitive=True, allowed_mentions=discord.AllowedMentions(everyone=False, users=True, roles=True), intents=intents)
|
case_insensitive=True, allowed_mentions=discord.AllowedMentions(everyone=False, users=True, roles=True), intents=intents)
|
||||||
bot._skip_check = lambda x, y: False
|
bot._skip_check = lambda x, y: False
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user