GithubHelp home page GithubHelp logo

zorakbot's Issues

Cog Refactor

Cogs need to be cleaned up and larger cogs need to be split into smaller parts

BUG - Permissions error when re-building container

We experience an error when attempting to update the running prod contianers.

When rebuilding the zorak_bot container from a new image, the container does not have permissions to read from the existing mongo container.

[Some-USERr@###-###-##-##]$ docker-compose -f dc-prod.yaml up -d Building zorak error checking context: 'no permission to read from '/srv/prod/db/WiredTiger.turtle''. ERROR: Service 'zorak' failed to build : Build failed

Currently the fix is to open the permissions on the db folder, which allows all users access, but I dont like this.

Possible solution is to run the containers both as the same user from the dockerfile

Update bot descriptions

The "about me" and the help command are out of date + need updating. We should move this info into a TOML to pave the way for it to be added to a database.

BUG - Disable admin logging for cleanup tasks

          is this behaviour intended? even if a user is an admin, if any of the roles they have are not admin values it would still send a message right? meaning every user that has a non-admin role would have this logging occur

if you wanted to NOT show admins, you should instead do a check like
is_admin = any(role.id in admin_roles.values() for role in message_before.author.roles)
and then compare against this variable

Originally posted by @Crambor in #86 (comment)

Deleted channel breaks verification

HAS BEEN HOTFIXED, but need to be updated in the next release

File "/zorak_bot/cogs/verification_on_verified.py", line 46, in verify_button_callback If you have any questions, feel free to post your question in {bot.get_channel(normal_channel['new_to_python']).mention} or {bot.get_channel(normal_channel['python_help_1']).mention} AttributeError: 'NoneType' object has no attribute 'mention'

Remove {bot.get_channel(normal_channel['new_to_python']) and update TOML files

Update welcome message

image

Need to update a few items in the welcome message.

  • Roles needs to be /roles
  • Website needs proper link
  • email doesn't seem to work
  • invite link doesnt seem to work

FEATURE - birthday list for server users

This would be a series of simple commands, such as:
/birthday add {date}
/birthday update {date}
/birthday - perhaps shows the next birthday on the server
/birthday list - shows a list of birthdays (paginated) in order of closest-first

/ticket broken

When creating a ticket, an error is thrown:
Traceback (most recent call last): File "/usr/local/lib/python3.9/site-packages/discord/ui/view.py", line 414, in _scheduled_task await item.callback(interaction) File "/src/cogs/general_tickets.py", line 30, in button_callback support = await self.bot.fetch_channel(mod_channel["server_support"]) AttributeError: 'make_a_ticket' object has no attribute 'bot'

and the ticket is not created

Logging refactor

Refactor logging in-server using the audit log, rather than listeners for a more accurate logging experience.

dont forget to add Maszi's logging handler in there.

Handle Reaction Roles

Currently we have a "Python level" role, as well as a "country" role.

This should be handled by Zorak.

BUG - Logging: Message_edit throws error when text is too long

Ignoring exception in on_message_edit Traceback (most recent call last): File "/usr/local/lib/python3.9/site-packages/discord/client.py", line 377, in _run_event await coro(*args, **kwargs) File "/src/cogs/logging_message_edit.py", line 44, in on_message_edit await logs_channel.send(f"{username.mention}", embed=embed) File "/usr/local/lib/python3.9/site-packages/discord/abc.py", line 1606, in send data = await state.http.send_message( File "/usr/local/lib/python3.9/site-packages/discord/http.py", line 366, in request raise HTTPException(response, data) discord.errors.HTTPException: 400 Bad Request (error code: 50035): Invalid Form Body In embeds.0.fields.0.value: Must be 1024 or fewer in length. In embeds.0.fields.1.value: Must be 1024 or fewer in length.

Message edits that are more than 1024 characters throw an error. This can be handled by breaking the text into blocks of 1024 chars, and adding new feilds for every block.

Points leaderboard

Users should be able to use a slash command that provides an embed with the top 20 point earners in the server

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.