Giter VIP home page Giter VIP logo

pudding-bot's People

Contributors

happy-ferret avatar

Watchers

 avatar

pudding-bot's Issues

Version scheme

Come up with a consistent scheme that also denotes Alpha, Beta and RC versions.

Code reorganization

Move code out of main.py into separate modules, and move modules into subfolders (bot, user, group, fun).

Bot token exposed in main.py

Bot token was accidentally exposed in main.py.

Resolution:

  • Revoke token and generate a new one.
  • Remove comment line with old, now non-functional token.
  • Implement a mechanism to prevent accidentally sharing credentials in the future.
  • Replace file_id in about.py.

/sticker and /nosticker command

Implement a /sticker command to display a sticker's ID and the set it belongs to.

Implement a /nosticker command to disable stickers or sticker sets.

/sticker

  • Add and register command handler.
    • Command list scope: All
  • Add sticker ID.
  • Add stickerset the sticker belongs to.

/nosticker

  • Add and register command handler.
    • Command list scope: Admins & Owner
  • Args: Solo to disable one sticker instead of entire set.

/help command

Implement a beautiful, comprehensive and informative in-bot help.

  • Add and register command handler.

    • Should be on top of commands list for regular users/DM and further down for admins/owner โ€” the latter are pointed towards it through /start anyways and seeing the /help on top might get in the way of performing their regular admin duties).
  • Add short intro text.

  • Add Buttons.

  • Add links to code repository and online documentation.

  • Add links to support/update channels.

  • Add donation link.

Database integration

Group configuration, filters, stickers, Welcome/Goodbye messages and other persistent data need to be stored in a database.

Viable options are PickleDB and MongoDB, with a preference for the latter.

Command list

Provide commands for DM, user, admin and owner scopes.

  • Refresh Commands and AdminCommands
  • Add DmCommands and OwnerCommands
  • Expose OwnerCommands by querying for group owner during new_chat_members event when member.username matches "PuddingBot"
    • Don't hardcode the bot username. Put it in config.py.
      • Could probably query for bot's username, too. But let's save that API call.

Coding style

Create a style guide.

  • Add linter.
  • Decide whether or not to use newline EOF.
  • Prepend license header to top of every source file.
  • Author style guide intro for developer documentation.

/start command

Present new or returning user with an introductory onboarding message
and a straight-forward way to add the bot to their group (via inline button).

Should be scoped to DM-only.

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.