jaredlyon / operation-politibot Goto Github PK
View Code? Open in Web Editor NEWOperation Politics JavaScript Bot
License: Apache License 2.0
Operation Politics JavaScript Bot
License: Apache License 2.0
guildMemberUpdate.js
eventRedesign the entire repMod.js
command from the ground up to instead be used as:
/setrep {target} {upvotes | downvotes | reset} {input}
reset
subcommandunmute.js
/rep
command needs a link filter in the reason argumentAdd Context Menus (right click message -> Apps) to provide some basic good faith messages/reminders for debates and rule reminders.
I think this will be super helpful in helping keep the server tidy!
This issue arises from the fact all moderation commands can take user IDs or mentions; because of this, mentions within a command reason argument may get picked up as the target mistakenly. It's an interesting edgecase, but the changes needed to fix it are probably not worth undertaking at the moment.
These commands are correctly passing through the handler but not executing for whatever reason.
lock.js
unlock.js
/modhelp
for mod commands/help
for general commands -> possibly split into subcommandsrep.js
and repmod.js
(soon-to-be setrep.js
)Similarity in the code between JareBot and Politibot may result in an identical bug wherein pushes in blackjack games fail to return the player's wager:
See jaredlyon/JareBot#35.
!
to join queue/next
to advance queue/clear
to clear queueIf Discord.js allows for bot stage management...
/populate
to bring entire queue up/add
to add the next member without moving the last/clear
to clear the stageinteractionCreate.js
We only need:
/rep upvote {target}
/rep downvote {target}
/rep profile {target}
/rep leaderboard
/rep help
rep.js
such that the reason
argument is also passed along to the target
user via DMsIssue #62 suggested a past (possibly current) issue regarding account generation within the guildMemberAdd.js
event:
rep.js
In order to carry out the bank transfer, request.js
needs to update the database using the asynchronous code:
await bot.bank.update(account);
await bot.bank.update(donor);
However, loading bot.js
throws a syntax error:
3|OpBot | [15:15:15] [LOG] | Unable to load command request.js: SyntaxError: await is only valid in async functions and the top level bodies of module
So far have been unable to move the update request in or around the statements; any insight or fixes would be appreciated.
this is going to make me kill someone because i fixed this before but it looks like the issue has occurred again and i don't know why.
example: https://discord.com/channels/760275642150420520/893189759474757693/1029982650183712788
userinfo.js
Absorbs all functions of the GateKeeper bot into Politibot!
/rep leaderboard
into /leaderboard upvotes
/ leaderboard
and /leaderboard downvotes
handler.js:70
This is particularly helpful for:
report.js
rep.js
It looks like lower numbers in the leaderboard display out of order. See attached screenshot.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.