Git Product home page Git Product logo

site-bot's People

Contributors

adbrik avatar amahanna avatar bobfri avatar ryanfleck avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

site-bot's Issues

Chore: Implement Semantic Release

It would be nice to have semantic-release running to automatically increment major and minor versions of the codebase as features are added.

Style request: tone message response

At the moment the bot returns the the whole text before giving the tone, making the bot kind of spamy. I think it would be best if it sent the first couple words of the text then give the tone.

Article Summary Endpoint

For users who block (subjectively) cancerous websites like Reddit, a tool should be made to vaccum the body text and format it nicely for reading in a channel.

Feature Request: OwO command.

!owo looks at the past ten messages in a chat. If one has an image attachment, it will attempt to upload the image to a machine-learning image identification service (IBM, Google, etc,) and return a pretty-printed version of the response, including the objects with the highest likelihood of being present.

Fix Error Handling

Currently a 'Missing Permissions' error will crash the bot.

This should be fixed in two ways:

  1. Ensure the dockerized bot restarts correctly in case of a failure like this. (restart:always)
  2. Ensure the error is handled correctly so the bot stops crashing in this scenario.
881909549810974740 => Finished running.
/usr/src/app/node_modules/discord.js/src/rest/RequestHandler.js:154
      throw new DiscordAPIError(request.path, data, request.method, res.status);
            ^

DiscordAPIError: Missing Permissions
    at RequestHandler.execute (/usr/src/app/node_modules/discord.js/src/rest/RequestHandler.js:154:13)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async RequestHandler.push (/usr/src/app/node_modules/discord.js/src/rest/RequestHandler.js:39:14) {
  method: 'post',
  path: '/channels/798999263870058516/messages',
  code: 50013,
  httpStatus: 403
}

Feature Request: Translation Command

!translate <lang> <text?>

Translates the provided text (or previous message/last message in channel) to the specified language using some sort of translation API. By default, translates to French.

Feature Request: Private Replies

Update the !help and !contribute commands to reply to individual users, inline with the original conversation, like Discord warnings. This is a research ticket first; I'm not sure if this is possible.

Feature Request: Spongebobify

Manipulates the user's message to read as if it was written by duck spongebob.

L i kE t H i s

Be careful to get the last message in the channel written by the user who sent the message to rewrite, and not just the prev. message.

Feature Request: Mad Libs Command

!madlibs - given a sentence, replaces every instance of the words 'adjective', 'verb', 'noun', or 'pronoun' with a random instance of that type of word.

Contributed by Brad Gurtler.

Feature change: default translation language.

In the translation feature, you have the default translation langue to be English-to-French. you should have it as autodetect-to-french, it would clean up the code by removing the need to choose between target language and modelid.

Refresh the @New Member Role (!newmember)

The purpose of this bot is to refresh the @New Member role completely.

This means that the command should:

  • Remove the role from people that have a subset of a specific set of ranks (Staff, Club, Omnipotent, or Class Rank).
  • Add the role to anybody that currently do not have any of the roles in the list.

This is currently too complicated for YAGPDB.xyz to accomplish.

The set of roles is down below.

Admin, Mod, ESS, CSSA, IEEE, Server Developer, Server Booster, Club Representative, Bot, Omnipotent, elg2136, elg2137, elg2138, elg2336, elg3106, elg3125, elg3126, elg3136, elg3137, elg3155, elg3175, elg3316, elg3336, elg4115, elg4117, elg4118, elg4125, elg4126, elg4137, elg4139, elg4156, elg4157, elg4159, elg4176, elg4177, elg4178, elg4179, elg4911-elg4912, ceg2136, ceg3136, ceg3155, ceg3156, ceg3185, ceg4136, ceg4140, ceg4158, ceg4166, ceg4187, ceg4188, ceg4190, ceg4198, ceg4912-ceg4913, iti1120, iti1100, iti1121, csi2101, csi2110, csi2120, csi2132, csi2372, csi3104, csi3105, csi3120, csi3130, csi3131, csi3140, csi4105, csi4106, csi4107, csi4108, csi4109, csi4118, csi4124, csi4125, csi4130, csi4133, csi4139, csi4140, csi4142, csi4145, csi4150, csi4900, seg2105, seg2106, seg2900, seg3101, seg3102, seg3103, seg3125, seg4105, seg4110, seg4135, seg4156, seg4189, seg4910-seg4911, gng1105, gng2101, gng1106, eco1192, eng1112, phi2394, his2139, gng1103, elg-seg-ceg2911, chm1311, mat1320, mat1322, mat1341, mat1348, mat2322, mat2377, mat2384, phy1322, phy1331, phy1122, phy1124, phy2323, adm1100, adm1340, adm2320, adm3313, gng4120, gng4170, cvg1107, cvg2107, cvg2116, cgv2132, cvg2132, cvg2140, cvg2141, cvg2149, cvg2171, cvg2181, cvg3106, cvg3109, cvg3116, cvg3120, cvg3132, cvg3140, cvg3147, cvg3148, cvg4001, cvg4113, cvg4122, cvg4130, cvg4142, cvg4145, cvg4150, cvg4175, cvg4180, cvg4184, cvg4907, mcg1100, mcg2101, mcg2108, mcg2130, mcg2131, mcg2142, mcg2360, mcg2361, mcg3110, mcg3130, mcg3131, mcg3143, mcg3145, mcg3306, mcg3307, mcg3340, mcg3341, mcg4100, mcg4128, mcg4134, mcg4136, mcg4139, mcg4150, mcg4152, mcg4190, mcg4192, mcg4193, mcg4308, mcg4322, mcg4328, mcg4340, chg1125, chg1371, chg2312, chg2314, chg2317, chg2324, chg3111, chg3112, chg3122, chg3127, chg3305, chg3316, chg3326, chg3335, chg3337, chg4116, chg4160, chg4170, chg4244, chg4250, chg4307, chg4343, chg4360, chg4380, chg4381, chg4900, seg4145, anp1106, chm2330, chm2120, mat3373

Feature Request: Statistics command

!stats displays basic server statistics. For example:

  • Total users count
  • Number of users in each student association
  • Number of users in each engineering program
  • Number of bots
  • etc.

Enhancement: Translation Endpoint Language Support

This is a multi-step ticket to make more languages available to !translate users.

1. Modify Language List

If a language in the list has spaces in the output like "Traditional Chinese" add a dash in the !translate list command output. i.e. .replace(" ", "-")

2. Modify input processing code

  • Allow languages to be received in the format aa-aa and encode that in the 'model' field to be sent to the API, instead of language. This will allow users to specify a precise to-and-from translation flow. For instance, these must be accepted: 'En-Fr', 'SE-PK`, 'CN-en'.
  • Remove dashes "-" from longer language names, like "Traditional-Chinese" when given by user as target language.

@bobfri this is a ticket for you.

Fix Roulette Reply Styling

_(I don't have the power to handle ${username}... yet! :smiling_imp: )_ doesn't reply the desired text (assuming italic). Instead, we can use the * character.

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.