Code Monkey home page Code Monkey logo

teamo's People

Contributors

gris-martin avatar

Stargazers

 avatar  avatar

Watchers

 avatar

teamo's Issues

Rename repo to teamo

  • Rename old teamo repo to teamo-legacy or teamo-ts or something
  • Rename this repo to teamo
  • Replace old teamo with this one in NoobLovers channel

The bot is not responding

Good evening,
I invited the bot to my server, I gave all the required permissions, but it doesn't respond to the command:

@teamo create 5 23:05 League of Legends

The bot is online on my server.
Could you help me understand if I've forgotten something?

Thanks, Jonny

Add some tests

  • Database tests

    1. insert_entry x 2
    2. insert_member x 2
    3. edit_or_add_member (edit 1 member, add 1 new member)
    4. get_all_entries, assert length
    5. get_entry for both entries, assert equality, assert length of member array
    6. delete_entry
    7. get_all_entries, assert length
    8. get_entry for deleted entry, assert None
    9. insert_entry x 2
    10. delete_entries x 2
    11. get_all_entries, assert length
  • Teams tests

  • Utils tests

  • Teamo tests?

  • Discord tests?

Welcome message doesn't work

The welcome message doesn't work for Teamo instances ran using the Python wheel package. The following message comes:

Encountered an error with command welcome: Command raised an exception: FileNotFoundError: [Errno 2] No such file or directory: 'VERSION'.

Allow per guild preferences

Per guild preferences should be stored in a database and accessed when needed. Some preferences:

  • In which channel(s) can Teamo be used?
    • Type: int or null
      • int -> channel id
      • null -> everywhere
    • Default: Create "Teamo" channel and set its ID as default
  • In which channel should Teamo post "Time for ..." messages?
    • Type: int or null
      • int -> channel id
      • null -> same as the channel where the command was posted
      • Default: null
  • In which channel should Teamo post "Game @ xx:yy" messages?
    • Type: int or null
      • int -> channel id
      • null -> same as the channel where the "Time for ..." message was posted
    • Default: null
  • Should "Game @ xx:yy" messages be deleted?
    • Type: int
      • >= 0 -> Message should be deleted after this time
      • < 0 -> Message will never be deleted
    • Default: 15 mins

TODO

  • Create default db entries for all servers that don't already have an entry
  • Allow changing settings using chat (only allow for admins/special role?)
  • Use the settings when creating messages
  • Command for showing all settings

Handle rate limits and updating

Rate limiting can be a problem when updating messages continually. Maybe have more than one message update callback (one for each message)? And/or update messages more often the closer they are to finishing.

Add more nouns and adjectives

The nouns and adjectives lists (teamo/resources/nouns.list, teamo/resources/adjectives.list) could be expanded with more words!

Add them in the appropriate place alphabetically.

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.