Git Product home page Git Product logo

the-timepasser's Introduction

Hi there 👋

Images from Unsplash!

Does this work?

the-timepasser's People

Contributors

catfo435 avatar ultimatesppy765 avatar

Stargazers

 avatar  avatar

Watchers

 avatar

the-timepasser's Issues

Finish existing commands

Finish rewriting the already existing commands in the rewrite version:

  • /anipic
  • /aboutme
  • /avatar
  • /dice
  • /echo
  • /guessnum
  • /quote
  • /simon

Revamp Traceback Message

  • Check if all parts of the code send the traceback as a message to the user to be reported.
  • Change the error message to ephemeral.
  • Add following algo for posting error messages.
  • Do the same for buttons...

Improvements to Quote Searching

Some improvements I've planned:

  • Suggestions when no quote was found
  • Check and clean out bad code in the logic
  • Remove trailing spaces from front and end for inputs with extra spaces
  • Using selects for some stuff?

Work on embeds for respective ephemeral messages

Now embeds are supported for ephemeral messages as shown in the pic below:

image
So we can remake some of the old messages that were in ephemeral and take advantage of this ability. (mainly the /aboutme command, it's too untidy)

Bot side toxic input detection

The commands like /simon and /echo that take input from the user and show it in the output are fun to use but open a big moderation loophole.
People can bypass automod by sending toxic stuff through the bot itself.
While there can be human moderators doing this job, it'll be tough to moderate all such issues

Goal: Add a Google Perspective powered text input check that detects and cancels commands with toxic input.

Make an API wrapper for Wikiquote API

Brief Info:

wikiquote and wikiquotes are good enough implementations for fetching quotes from Wikiquote but don't satisfy our needs. On discovering Wikiquote has a public API, it feels rather better to switch to the raw Wikiquote API for fetching stuff, while making it possible to use this asynchronously with similar design plans for the remainder of the bot.


Planned:

  • An Asynchronous API Wrapper for Wikiquote
  • Attempts to try making extra scripts to extract quotes from pages
  • Better searches?

Separate Interaction Types

Earlier the only interaction types were:

  • 1 PING
  • 2 APPLICATION_COMMAND

Now more interaction types are coming and this is going to become a problem as there is a handler only for two interaction types.

Possible new interaction type:
3 MESSAGE_CONPONENT

Goal: Add support for multiple interaction types, as future proofing and for new stuff coming soon™.

Eval command for instant testing

New evaluate command for instant testing of the JSON responses for slash commands.
Only the bot developers will be able to use this command.
It will return the JSON response as a follow-up (chances are there that ephemeral messages may not work) and will have error handling (only try except else lol).

Move from WSGI to ASGI web server

Shift from WSGI to ASGI

The general problem with WSGI servers, is that each request waits for the previous one to be handled. To overcome this, switch to ASGI web server which handles many requests simultaneously.

Main objectives:

  • Move to an ASGI web server
  • Add support for discord-interactions module by Discord to work with Quart
  • Use aiohttp instead of requests for REST calls

Quotes have some errors with input length

Sending long quotes can cause stuff to break, while known, is a good reminder.

Plans to fix:

  • Parse query from embed description
  • Impose a character limit
  • Remove query in custom ID

Make the code clean

The code looks too messed up.
Things to do with the code:

  • Correct all Indentations.
  • Organize parts of the code in different files.
  • Check all the statements whether they're required or not.

This might be updated depending upon how things go, as of now these are main changes to be done.

Button Interactions

Buttons are coming to Discord.
One of the new interaction types, needs to be tested for possible applications within the bot.

Attached is a picture showing available buttons.

Screenshot_20210423_230332

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.