Giter Site home page Giter Site logo

jhdbot's Introduction

Eat | Nerd | Manga | Sleep | Repeat

jhdbot's People

Contributors

aaiknn avatar codemicro avatar dependabot[bot] avatar fumenoid avatar liikt avatar mehrn00 avatar moknah avatar nightwolf56-zz avatar pho3nix-jacki3 avatar pop-eax avatar rinkimekari avatar xnomas 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

Watchers

 avatar  avatar  avatar  avatar

jhdbot's Issues

Logging from Ban command

I've noticed that when the ban command is run JHD bot wipes messages from the user. This is an awesome feature cause it makes clean up a lot easier. However logs aren't saved when this occurs.

Would it be possible to either save this as it goes or cache them and then post to the logging channel after the fact?

Add way to remove users who have no roles

Users with no roles mean they are unverified and most-likely spam accounts. A feature to automatically prune users who do not have a role will help reduce spam accounts.

Edit Message Logging

Logging the before and after of edited messages would be very helpful for moderation purposes.

Tweak Verification?

We can tweak the verify command to DM them with the info from finishing welcome and give them member. I think have multiple layers of captcha will make it harder to retain users. Thoughts?

Logging Issues

With the new discord/discord py update, the logging framework needs to be adjusted:

  • Lower the embed body field length so that it doesn't overflow the discord capacity.
  • Add better traceback logging to stderr that includes a timestamp and more information.
  • Log when hooks are posted to the #maintenance channel to help correlate which log sent to the webhook correlates to which log is present in stderr.

Upon posting of webhooks, I have noticed some errors. Here's a dump of the traceback from the error causing the logging webhook not to trigger successfully:

jhd-bot       |     data = await response
jhd-bot       |   File "/usr/local/lib/python3.7/site-packages/discord/webhook.py", line 243, in request
jhd-bot       |     raise HTTPException(r, response)
jhd-bot       | discord.errors.HTTPException: 503 Service Unavailable (error code: 0): upstream connect error or disconnect/reset before headers. reset reason: overflow

The cause of this needs to be identified to help prevent it.

Logging Joins and Leaves

Logging user's joins and leaves is pretty nice feature to have in channels. It is much easier than sifting through the Audit log.

Twitter Feed

The current JHD twitter feed is going to die in the next few days as a the method we have been using is going to cease functioning. Having some method to hook this through the bot would be fantastic.

Add multiban and multikick feature

Multiban feature is desperately needed for bot raids. A multiban feature for the bot will greatly help keep bot raids more controlled.

Feature Request: Add a source command.

People in discord occasionally express an interest in the source code of the bot. Adding a $source command which returns the link to this repository would be useful. Any member on the server should have permissions to invoke it.

An added feature could be embedding the users of members who have the JHD Dev Team role as a way to mention users who have contributed to the bot. This code snippet is a good place to start on implementing that. The relevent discord.py docs are linked here for more reference.

Convert pipenv to requirements.txt

pipenv and Pipfile uses significantly more resources for installing python packages as compared to requirements.txt. The JHD Bot uses pipenv instead of requirements.txt. It is recommended to change from pipenv to requirements.txt for using a docker-based deployment.

Feature Request: Add a roles command.

Many users often ask about the roles in the server. The common roles can be applied by reacting in the #roles channel; however, there are a few specialized roles such as Veteran, CTF Creators, CTF Developers, etc. There is currently know public documentation on how to acquire these roles.

Adding a $roles command which will give an overview on how to acquire each common specialized role and how to get the more general roles would be useful information to new members of the server.

Invite Logs

Would be pretty awesome for the bot to log which invite a user joined with similar to how Auttaja does.

User (ID) joined the server using DCBHq6, which was created by NightWolf (creator id). This invite has 1 uses.

Fix bot not tagging banned members

The bot is not tagging banned members. This could be due to some changes Discord made after removing the old username format from 'name#dddd' to a fixed username.

Warn system

A warning system that keeps tracks warns given to users and notifies when "buckets" are filled.

Update the beginner command to include info about Hack The Box Academy

As Academy is geared towards beginners and in part helping user get started on the platform. (ie Web requests and javascript de obfuscation courses are a good reference for working through the invite challenge.) It therefore makes since to include information on them in the beginner command. Oh I should be able to do this.

Webhook logging framework

Since we are going to start using webhooks for logging important system events it would be great to have a framework that we can use to add logging features to the bot and web app. This framework should be designed as an external module that can work with the bot and web app without changing the code.

Add invite link tracking

Auttaja bot allows for invite link tracking. Add a way to implement Attaja invite tracking into the bot.

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.