Code Monkey home page Code Monkey logo

acebot's People

Contributors

capnodin avatar cloakersmoker avatar delpyth avatar example123 avatar g33kdude avatar masonjar13 avatar micha-ohne-el avatar onerandomusername avatar run1e avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

acebot's Issues

[Request] Make help channels auto-close when the initial message gets deleted

Title says it all. It happens from time to time that somebody opens a help channel (usually they trigger the ‘anti-cheat’ message) and then just decide to delete their message (or maybe Staff does). In this case the channel just lingers around for 30 minutes.
If it's not too big of a deal, I would like to see it close automatically in this case. I guess there would have to be a check that there are no other non-bot messages in the channel. Not sure.
That's all!

Add a license

license good, ace should have a license rather than be proprietary.

pre-commit workflow & possible github actions

Now that the codebase is formatted with black, there should exist some sort of mechanism to enforce new code is formatted with black. One can use pre-commit for this, plus pre-commit.ci in order to have automatic lint on every commit locally, and automatic lint on every pull request and commit.

(I personally don't use pre-commit.ci much as I like having more control and running it in github actions, but for this project, it seems like a better option)

Weather command - new features

If !w [location] returns multiple possible results, reply with them in a numbered list, and respond with the correct location at the response of a number.

Help channels cause channel list bounce on AHK Discord

I'm not sure if there's a good way to describe the title, but its when a channel is claimed the entire channel list will bounce around. Its annoying since it happens quite often, however there's an easy solution to the problem.

As proven on the Python Discord, if a channel position is not provided in the edit when switching categories, they will not bounce around. This does mean that when channels are moved they will always default to the bottom of the category. This should cause less channel bounce.

Affected Lines:

AceBot/cogs/ahk/help.py

Lines 206 to 213 in 80db24d

try:
current_last = self.open_category.text_channels[-1]
to_pos = current_last.position + 1
except IndexError:
to_pos = max(c.position for c in channel.guild.channels) + 1
await channel._move(
position=to_pos,

AceBot/cogs/ahk/help.py

Lines 249 to 256 in 80db24d

try:
current_first = self.closed_category.text_channels[0]
to_pos = max(current_first.position - 1, 0)
except IndexError:
to_pos = max(c.position for c in channel.guild.channels) + 1
opt = dict(
position=to_pos,

If this is approved I can make a fix and submit a pull request myself.

Add !del command to delete code pastes

The !del command would delete the last message A_AhkBot posted on behalf of the person who says "!del". I.e. to correct mistakes when highlighting code with !hl [code].

👋

Mutes don't Always Reset

In some cases, unmuting a user does not always clear the record in the database that a user was temporarily muted.

I've narrowed it down to be a cause of having a is_bot check when updating the database.

There's two possible solutions. One solution is to prevent muting bots, which I am personally against. The other solution is to remove the check for if the member is a bot when unmuting them.

image

async def unmute(self, ctx, *, member: discord.Member):

AceBot/cogs/mod.py

Lines 609 to 611 in 5e2ac95

async def on_member_update(self, before: discord.Member, after: discord.Member):
if before.bot:
return

use AutoShardedBot

instead of using commands.Bot use commands.AutoShardedBot for better connection and faster response time

add a way to select the per-guild avatar or the global avatar

There's not a good way to view which avatar you want to view. I propose either a subcommand or a new command to explicitly choose. The current one does the display avatar, so a subcommand might be more beneficial. Of course, adding a subcommand for the per-server avatar would be nice too, in case someone has the same name as the subcommand.

.ask in the AHK Discord can be counterintuitive

When someone responds with .ask in #general, either with a ping or at a slow time of day, the asker may see the message much later. The suggested channels may have been claimed, and the newcomer just doing what they were told accidentally asks in the wrong place a second time.

Ace should store a queue of tuples containing old message IDs, suggested channel 1, and suggested channel 2. When a channel is claimed, Ace should edit the next queue item to instead point to #how-to-get-help until neither of the next queue item's suggested channels are the just claimed channel.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.