Giter Club home page Giter Club logo

discord-toolkit-bot's People

Contributors

almostsouji avatar dependabot[bot] avatar jaw0r3k avatar jpbm135 avatar mrmythicalyt avatar nyapat avatar puffindevelopment avatar syjalo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

discord-toolkit-bot's Issues

Automatically upload files in help channels to a bin service

As mentioned in the /tag query: bin command, users should upload large code snippets to a bin service instead of uploading them as files. Some reasons include:

  • They cannot be viewed within the client on mobile (must open in browser or download)
  • Trying to expand it will lead to the same issue, it will just be a big codeblock again but hideable
  • Trying to view full-screen and referring back to other messages in chat is a hassle
  • You cannot Ctrl + F to quickly find a keyword
  • You can upload the code to a bin service yourself but that can become a hassle, especially on mobile
  • You can always tell the user to upload it to a bin service themselves, but they're d.js members so you never know

Possible Solution

Upon detecting a message in a help channel with a .txt/.js/.ts file, upload the contents of the file to a bin service. Then, silently reply to the message with the link to the bin.

As for which bin service to use, I think sourcebin is the most popular but I can't find if they have a public API or not. Pastebin is a close contender.

Concept

image

GitHub command

What about moving github command here ? + adding more things to find like comments
image


Token detector

The bot will look at the content of messages (Maybe the content of files too) and look for tokens. If it finds a token, then it will publish that token to GitHub Gist to be invalided by Discord.

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.