create account

Qabot (Question& Answer bot for Discord) (NodeJS) by pars11

View this thread on: hive.blogpeakd.comecency.com
· @pars11 · (edited)
$47.40
Qabot (Question& Answer bot for Discord) (NodeJS)
<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:**

![comm](https://i.imgsafe.org/fd/fd7af98efa.png)

**Send message**

![sendmessage1.png](https://ipfs.busy.org/ipfs/Qmajm5XtgWCPLZeJKNgiGtFniiPnMDvqwYRsqbrqSgzurE)

* Question channel
![sendmessage2.png](https://ipfs.busy.org/ipfs/QmPKZALy3w8twegedS7cn5q5hmHdkj3DpZShSUA1gPkBxV)

**List Questions**
![list](https://i.imgsafe.org/fd/fd81642047.png)

**Send Question / Determine Winner**
![qa](https://i.imgsafe.org/fd/fd84572a98.png)

**Log Channel**

![log](https://i.imgsafe.org/fd/fdaae6fca8.png)

**Score Board**

![score](https://i.imgsafe.org/fd/fdad11e8e5.png)

**Statistics**

![stat](https://i.imgsafe.org/fd/fdb24974e2.png)

<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)
πŸ‘  , , , , , , , , , , , , , ,
properties (23)
authorpars11
permlinkqabot-question-and-answer-bot-for-discord-nodejs
categoryutopian-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"]}
created2018-06-12 23:25:42
last_update2018-06-12 23:39:54
depth0
children3
last_payout2018-06-19 23:25:42
cashout_time1969-12-31 23:59:59
total_payout_value35.965 HBD
curator_payout_value11.435 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length2,595
author_reputation13,018,135,268,251
root_title"Qabot (Question& Answer bot for Discord) (NodeJS)"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id60,509,974
net_rshares18,363,558,796,366
author_curate_reward""
vote details (15)
@justyy ·
$0.05
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/)
πŸ‘  , , , , , ,
properties (23)
authorjustyy
permlinkre-pars11-qabot-question-and-answer-bot-for-discord-nodejs-20180613t144101589z
categoryutopian-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"}
created2018-06-13 14:41:03
last_update2018-06-13 14:41:03
depth1
children1
last_payout2018-06-20 14:41:03
cashout_time1969-12-31 23:59:59
total_payout_value0.053 HBD
curator_payout_value0.001 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length737
author_reputation280,616,224,641,976
root_title"Qabot (Question& Answer bot for Discord) (NodeJS)"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id60,593,736
net_rshares21,989,289,171
author_curate_reward""
vote details (7)
@pars11 ·
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.
properties (22)
authorpars11
permlinkre-justyy-re-pars11-qabot-question-and-answer-bot-for-discord-nodejs-20180613t154319693z
categoryutopian-io
json_metadata{"tags":["utopian-io"],"app":"steemit/0.1"}
created2018-06-13 15:43:18
last_update2018-06-13 15:43:18
depth2
children0
last_payout2018-06-20 15:43:18
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length203
author_reputation13,018,135,268,251
root_title"Qabot (Question& Answer bot for Discord) (NodeJS)"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id60,601,095
net_rshares0
@utopian-io ·
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>
properties (22)
authorutopian-io
permlinkre-qabot-question-and-answer-bot-for-discord-nodejs-20180614t045008z
categoryutopian-io
json_metadata"{"app": "beem/0.19.29"}"
created2018-06-14 04:50:09
last_update2018-06-14 04:50:09
depth1
children0
last_payout2018-06-21 04:50:09
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length503
author_reputation152,955,367,999,756
root_title"Qabot (Question& Answer bot for Discord) (NodeJS)"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id60,676,229
net_rshares0