Code Monkey home page Code Monkey logo

moderatelyusefulbot's People

Contributors

lukaswagner avatar

Watchers

 avatar

moderatelyusefulbot's Issues

log to file

print the logs to file and to screen. in order to do this, a logging helper should be used (see this)

move command/bot data to own file

remove all user data (telegram ids, playlist etc) from the config file. thus, no private information is shared when adding new functionality.

tts capability

add text-to-speech capability, maybe as an inline function (requiring #33 to be implemented)

chat stats

calcualte some stats for the chat, like who's msot active and most active times

add command settings

store a dict<string, string> per command, which can be accessed by the action for command customization

add management bot

normal bots shouldn't be able to stop the whole application, since this may affect other bots. add a management bot which provides options to start/exit/restart/edit other bots and their commands.

whitelist for chats

some commands shouldn't be run in all chats. thus, a whitelist should be defined per bot, with commands having an optional requireWhitelist property.

Month in review

Grab a random collection of a chat's images from the last month and create a beautiful collage or even a short video from it.

split config file

instead of having config and credentials in one file, use two different files - thus, the config files may be added to the repo

better spotify auth

creating a new token by hand every hour isn't very usable. the token should be refreshed automatically.

More stats

Show more Spotify stats when invoked with argument "more" or "full"

Ideas: total stats, time by user, mainstream / popularity score

timed commands

add support for timed commands which send a message periodically to a given channel

Cache playlist

Don't fetch the complete playlist, only the number of songs (or is there a better metric? Last updated time?). The track list and the calculated results should be stored for faster replies. A "refresh" arguments should be available.

remove static state vars

the cached spotify playlist shouldn't be stored as a static var. to solve this, a data member could be added to the bot class.

Log commands only

If the bot is set to receive all messages (not just commands), all these messages are logged, even if they are ignored by the bot. This creates a lot of bloat in the log file. Additionally, this doesn't feel right privacy-wise.

Command class

For better management of functions and their commands, a simple command class should be implemented.

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.