Giter VIP home page Giter VIP logo

crajybot's Introduction

Heyo!

I'm Anand, an undergraduate computer science student from India.

Reach me on:

Top Langs

crajybot's People

Contributors

anand2312 avatar dependabot[bot] avatar risb21 avatar windsmith avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

crajybot's Issues

Reschedule incomplete reminders on shutdown

Is your feature request related to a problem? Please describe.
Reminders set with the .remind/.notes -c <time> command are lost on shutdown. These need to be persisted by adding them to the database, and then reloading them on start-up.

Describe the solution you'd like
Tasks need to be persisted by adding them to the database on bot shutdown, and then reload them on start-up.

'plshelp' in .guess commands

The system for auto word selection off of the internet is absolutely terrible right now

  • Firstly it uses 2 modules installed off of PyPI (pip), random-word and PyDictionary. More often than not, the random word generated doesnt pull any results for meanings from PyDictionary. And when there is no results, I have the command auto-restart, but this gets annoying after 10+ tries to get a word.

  • BOTH these modules use blocking API calls, based on requests (or unirest, I'm not sure which, but it is blocking). This means that while the bot is trying to get results, it can perform NO OTHER COMMAND.

The easiest solution seems to be switching to the WordsAPI (it has a limit of 2500 free requests per day which we can stay under), and then use the aiohttp library to make requests to it, so that the bot isn't blocked by the API request.

Can u help me

Can u help me in my bot .
To change it from sqlite to mongodb database
If u i will add u in my team
If u please respond

Store User Data with User IDs

Currently the database holds data for each user, and the member's username#discriminator is used to identify each person.
Switch out the username for user IDs (which unlike usernames will remain constant).

Hyper-sophisticate the birthday cog

Step 1: Store guild-specific timezones in the guilds table - DEFAULT UTC
Step 2: Run the task loop more than once a day - twice/thrice maybe
Step 3: Pull all upcoming birthdays and schedule them to be wished at their corresponding times - the difficult part
Step 4: Profit

Faulty Cooldown trigger on .rob

The cooldown on .rob gets triggered for any invocation of the command, regardless of whether the command was successful (refer image)
07CBA263-18E7-49B1-9050-225F07C6BCC4
A fix would be to have the cooldown be applied after command processing instead of before it.

Timezone Issues

The bot is running on a server from America, so the dates are delayed on the birthday wishes.
Can't use a closer server cuz they're not as cheap.
A fix would be to compare the dates after adding a correction factor to the date in America so that the wish is on a normal time for us.

Filtering emojis during .aki

The check function that waits for a reaction from the user isn't limited to just that one message, but instead checks all messages for a reaction.
This means that the author could potentially add a reaction which was a valid response to the question on another message, and the bot would count it as a response.

Changing the input for .ttt

.ttt has indexes as inputs currently.
this is problematic for 2 reasons:

  1. The index system is kind of hard to remember for first time players, which would lessen their enjoyment
  2. Typing the indexes pushes the ttt grid further up the chats

There are 2 possible solutions to this:

  1. Re-sending the grid every few messages in the channel
  2. Adding reaction emojis to the grid representing each move on the grid

Implement Logging

Is your feature request related to a problem? Please describe.
No logging now. Need logging.

Describe the solution you'd like
Bring logging.

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.