Giter Club home page Giter Club logo

discordbot's People

Contributors

ba3a-g avatar bencos17 avatar furtidev avatar gbowne1 avatar hitblast avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Forkers

ba3a-g

discordbot's Issues

Update backend to support cogs and extensibility.

This enhancement involves implementing discord.ext.commands.Cog class and separating the functionality of the bot into different Python scripts. The goal here is to have all of the commands and features be located in a new cogs folder so that:

  • It provides the developers with an extensible codebase to add more features without breaking / affecting other ones.
  • It provides a neat and clean structure for the codebase.

Issues found with PyLint && Pylance

For some unknown reason my configuration for this project is using PyLint && PyLance instead of Flake8 and black which are already installed with pip. So I don't know if even PyLint and PyLance are doing this properly the same way that Flake and black are. These may or may not be actual issues.

  • errorhandler.py
    Line 10 & 11: Unable to import 'disnake' pylint(import-error)
    Import "disnake.ext" could not be resolved Pylance[reportMissingImports]

    Line 14: Missing class docstring pylint(missing-class-docstring)

  • general.py

Line 47 has "I'm" should be "I'm"

  • moderation.py
    Line 13: Too few public methods (0/2) pylint(too-few-public-methods)
    Missing class docstring pylint(missing-class-docstring)
    Line 36: str | unsupported operand type(s) for | pylint(unsupported-binary-operation)
    Alternative syntax for unions requires Python 3.10 or newer Pylance
    Line 148 Argument name "id" doesn't conform to snake_case naming style pylint(invalid-name)

  • music.py
    Line #100 (parameter) self: Self@Music
    Too many positional arguments for method call pylint(too-many-function-args)

Fix tasks.json and launch.json

The current files:

  • tasks.json
  • launch.json

Don't appear to work as Microsoft describes in their Pyton Debug, etc. documentation.

These need to be fixed.

VSCode settings.json

The language and linter, editor, etc. for Python need to be fixed so that the Python extension does not try to do wierd things like install unnesseccary linters, etc.

README.md

Needs a README.md file that is more descriptive and describes the bot features.

VSCode and Visual Studio

This project needs a .vs folder with and VS project files.

  • tasks.vs.json
  • launch.vs.json

Also need to finish:

.vscode folder

  • tasks.json
  • settings.json
  • launch.json

.vscode/extensions.json already has the reccomended extensions for Python development, although this environment needs to be tested.

I could not find good Python settings

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.