<hr> #### Repository https://github.com/pars11/qaDiscordbot <hr> #### What is the project about? Qabot is a question&answer bot that discord channel managers can use to make question,answer competitions. Once the administrators have added their questions, they can ask they want and then determine the winners. Bot has role control for each command and only those with role (now qabot) can use the bot. (Score Board and Statistics do not have role control) The bot keeps a log for each command. This log record is saved both to the log channel and to the local log file of the bot. At the same time, users can see the "top 10 user" with score command. Or they can look at the number of question added,asked and winning user count with statistics command. <hr> **Commands:**  **Send message**  * Question channel  **List Questions**  **Send Question / Determine Winner**  **Log Channel**  **Score Board**  **Statistics**  <hr> #### Technology Stack * [Discord.js](https://discord.js.org/#/) * [File system](https://www.npmjs.com/package/file-system) (for read and write json) * [Moment.js](https://momentjs.com) #### Roadmap I will determine the remaining updates according to the comments and responses. I can edit and update it according to the users' requests. #### Install Firstly we need to download and install Node.js from [Node.js Website](https://nodejs.org/en/download/). After installing node.js, you can download qabot via github or clone your computer. Clone: > cd projectfolder > git clone https://github.com/pars11/qaDiscordbot You need to enter your bot token in the "qabot.login('');" section in the app.js file. More info discord app and bot token. [Parsbot | Discord Bot Tutorial Node.js | Part 1](https://steemit.com/utopian-io/@pars11/parsbot-or-discord-bot-tutorial-node-js-or-part-1) Okey now run app with node. > node app.js #### How to contribute? You can reach me by commenting on this post or send message on the discord (@pars11#1145). If you want to make this application better, you can make a Pull Request. [Github](https://github.com/pars11/qaDiscordbot)
author | pars11 |
---|---|
permlink | qabot-question-and-answer-bot-for-discord-nodejs |
category | utopian-io |
json_metadata | {"community":"busy","app":"steemit/0.1","format":"markdown","tags":["utopian-io","development","qabot","discord","busy"],"links":["https://github.com/pars11/qaDiscordbot","https://discord.js.org/#/","https://www.npmjs.com/package/file-system","https://momentjs.com","https://nodejs.org/en/download/","https://steemit.com/utopian-io/@pars11/parsbot-or-discord-bot-tutorial-node-js-or-part-1"],"users":["pars11"],"image":["https://i.imgsafe.org/fd/fd7af98efa.png","https://ipfs.busy.org/ipfs/Qmajm5XtgWCPLZeJKNgiGtFniiPnMDvqwYRsqbrqSgzurE","https://ipfs.busy.org/ipfs/QmPKZALy3w8twegedS7cn5q5hmHdkj3DpZShSUA1gPkBxV","https://i.imgsafe.org/fd/fd81642047.png","https://i.imgsafe.org/fd/fd84572a98.png","https://i.imgsafe.org/fd/fdaae6fca8.png","https://i.imgsafe.org/fd/fdad11e8e5.png","https://i.imgsafe.org/fd/fdb24974e2.png"]} |
created | 2018-06-12 23:25:42 |
last_update | 2018-06-12 23:39:54 |
depth | 0 |
children | 3 |
last_payout | 2018-06-19 23:25:42 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 35.965 HBD |
curator_payout_value | 11.435 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 2,595 |
author_reputation | 13,018,135,268,251 |
root_title | "Qabot (Question& Answer bot for Discord) (NodeJS)" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 60,509,974 |
net_rshares | 18,363,558,796,366 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
yuxi | 0 | 2,529,182,007 | 10% | ||
mys | 0 | 35,641,956,930 | 35% | ||
utopian-io | 0 | 18,267,789,274,406 | 12% | ||
emrebeyler | 0 | 14,774,806,732 | 2% | ||
steemitstats | 0 | 3,636,487,685 | 5% | ||
eyupyusuf | 0 | 3,327,152,962 | 100% | ||
thornaci | 0 | 11,242,900,055 | 100% | ||
thinkingmind | 0 | 2,706,422,925 | 100% | ||
pars11 | 0 | 8,998,970,744 | 100% | ||
sudefteri | 0 | 3,593,070,948 | 100% | ||
ruen | 0 | 3,609,096,908 | 100% | ||
zcool | 0 | 164,295,180 | 10% | ||
yasujizr | 0 | 4,046,158,410 | 100% | ||
sofia-darling | 0 | 943,059,157 | 100% | ||
drfrostgirl | 0 | 555,961,317 | 100% |
Thank you for your contribution. Nice idea. Have you tested the concurrency? I kinda feel the code will break if multiple users answers at the same time e.g. data may get lost. Also, you don't need to upload `node_modules` to the git repository. Your contribution has been evaluated according to [Utopian policies and guidelines](https://join.utopian.io/guidelines), as well as a predefined set of questions pertaining to the category. To view those questions and the relevant answers related to your post, [click here](https://review.utopian.io/result/3/3333332). ---- Need help? Write a ticket on https://support.utopian.io/. Chat with us on [Discord](https://discord.gg/uTyJkNm). [[utopian-moderator]](https://join.utopian.io/)
author | justyy |
---|---|
permlink | re-pars11-qabot-question-and-answer-bot-for-discord-nodejs-20180613t144101589z |
category | utopian-io |
json_metadata | {"tags":["utopian-io"],"links":["https://join.utopian.io/guidelines","https://review.utopian.io/result/3/3333332","https://support.utopian.io/","https://discord.gg/uTyJkNm","https://join.utopian.io/"],"app":"steemit/0.1"} |
created | 2018-06-13 14:41:03 |
last_update | 2018-06-13 14:41:03 |
depth | 1 |
children | 1 |
last_payout | 2018-06-20 14:41:03 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.053 HBD |
curator_payout_value | 0.001 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 737 |
author_reputation | 280,616,224,641,976 |
root_title | "Qabot (Question& Answer bot for Discord) (NodeJS)" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 60,593,736 |
net_rshares | 21,989,289,171 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
happyukgo | 0 | 411,014,792 | 20% | ||
superbing | 0 | 2,701,857,450 | 20% | ||
dailyfortune | 0 | 60,859,996 | 20% | ||
dailystats | 0 | 4,751,061,659 | 20% | ||
dailychina | 0 | 3,265,814,501 | 20% | ||
pars11 | 0 | 8,851,629,508 | 100% | ||
turtlegraphics | 0 | 1,947,051,265 | 20% |
Thanks for the suggestions yes I am still continuing the tests. For concurrency I will try to find the best solution. I will be careful not to include "node_modules" to the git repository. Thanks again.
author | pars11 |
---|---|
permlink | re-justyy-re-pars11-qabot-question-and-answer-bot-for-discord-nodejs-20180613t154319693z |
category | utopian-io |
json_metadata | {"tags":["utopian-io"],"app":"steemit/0.1"} |
created | 2018-06-13 15:43:18 |
last_update | 2018-06-13 15:43:18 |
depth | 2 |
children | 0 |
last_payout | 2018-06-20 15:43:18 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 203 |
author_reputation | 13,018,135,268,251 |
root_title | "Qabot (Question& Answer bot for Discord) (NodeJS)" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 60,601,095 |
net_rshares | 0 |
Hey @pars11 **Thanks for contributing on Utopian**. Weβre already looking forward to your next contribution! **Contributing on Utopian** Learn how to contribute on <a href='https://join.utopian.io'>our website</a> or by watching <a href='https://www.youtube.com/watch?v=8S1AtrzYY1Q'>this tutorial</a> on Youtube. **Want to chat? Join us on Discord https://discord.gg/h52nFrV.** <a href='https://v2.steemconnect.com/sign/account-witness-vote?witness=utopian-io&approve=1'>Vote for Utopian Witness!</a>
author | utopian-io |
---|---|
permlink | re-qabot-question-and-answer-bot-for-discord-nodejs-20180614t045008z |
category | utopian-io |
json_metadata | "{"app": "beem/0.19.29"}" |
created | 2018-06-14 04:50:09 |
last_update | 2018-06-14 04:50:09 |
depth | 1 |
children | 0 |
last_payout | 2018-06-21 04:50:09 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 503 |
author_reputation | 152,955,367,999,756 |
root_title | "Qabot (Question& Answer bot for Discord) (NodeJS)" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 60,676,229 |
net_rshares | 0 |