b1ue-dev / articuno Goto Github PK
View Code? Open in Web Editor NEWA fun (parody) Discord Bot, written with interactions.py.
Home Page: https://blue.is-a.dev/Articuno/
License: GNU General Public License v3.0
A fun (parody) Discord Bot, written with interactions.py.
Home Page: https://blue.is-a.dev/Articuno/
License: GNU General Public License v3.0
Thanks for the down time at a very best moment.
It would be cool for something like /time country:
to exist. Lets say, you live in america and want to check the time in Greece, you would use that command and it would tell you the time.
A bit of a useless command but i dont know how to add it myself
This is just a suggestion, but what if we made something for Articuno to process and forward official pokémon news our sources can be the official Twitter page along with Celebi.net and other credible sources related to Pokémon.
Use a Pokemon papi or something...don't use json...an api is much faster than 30k lines of json :/
Add a emoji stealer command again. I miss it.
There is a typo in the stats command, its "stat"
Heya! I noticed while exploring some interactions.py repos to look some inspiration on how implementing help command... your /help
command wouldn't index last commands since you're using multiples of 10 in your i
var, so it'd orphan some commands, like if you have 36 commands, embed only shows 30 commands instead. Then those commands aren't sorted alphabetically globally, but per pages.
I tried to patch using what I've wrote similarly, but with languages index, and it works properly. Below is my patch, feel free to use it :D
@interactions.slash_command(
name="help",
description="Get a list of all available commands."
)
async def help(self, ctx: interactions.SlashContext) -> None:
"""Get a list of all available commands."""
help_list = []
commands = sorted(self.client.application_commands,
key=lambda x: str(x.name))
for i in range(0, len(commands), 10):
listed = []
for command in commands[i:i + 10]:
cmd_name = f"/{command.name}"
group_name = f" {command.group_name}" if command.group_name else ""
sub_cmd_name = f" {command.sub_cmd_name}" if command.sub_cmd_name else ""
name = f"{cmd_name}{group_name}{sub_cmd_name}"
description = command.sub_cmd_description if command.sub_cmd_name else command.description
listed.append(interactions.EmbedField(name=name, value=description))
help_list.append(
interactions.Embed(
title="List of available commands.",
color=0x7CB7D3,
thumbnail=interactions.EmbedAttachment(
url=self.client.user.avatar.url),
fields=listed
)
)
paginator = Paginator.create_from_embeds(
self.client, *help_list, timeout=30)
await paginator.send(ctx)
For this, I used range()
as it will do the same job with i = 0; i +=1
stuff, but better and makes the code even smaller.
Rewrite exts.core
.
Current planned:
eval.py
$eval
.This will be solved in the next Pull Request.
Basically, just some simple stuffs:
json
and create a guild ID list.if
else
statement check for every command.if
returns True, deny the request. If not, run.A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.