A bot for AlgeriaTech.slack.com
The goal of this project is to invite the community to collaborate on building something useful and fun. The bot should welcome new members of the team and keep the community active in different ways (news, debates, job offers, AI-powered interviews/quiz/games ...etc). But most importantly, keep the atmosphere cool and echo some jokes every now and then as well :)
Our imagination and determination are the only limits to where this can lead 😉
- Fork and clone the repository
git clone [email protected]:USERNAME/dz-community-bot.git
- Install the dependencies
yarn install
ornpm install
- Switch to another branch
git checkout -b feature-x
- You will need a token to use; send "token" in a direct message to @iobot and you'll get one.
- Copy
.env.sample
to.env
and use your generated token there - Launch your bot
yarn start
ornpm start
You should be able to use the #test-bot channel to do your tests or create your own private channel, but be sure to /invite @iobot
to it.
After running yarn start
or npm start
-
go to AlgeriaTech Slack
-
tape this message and send it in test-bot channel :
qui @iobot-dev
- The iobot-dev will respond by this message with a smiley:
Je suis l'ange gardien de cette communauté :innocent:
Now we will make a little change to this message to verify if your server is up and processing messages.
- go to the
presentation.js
file on your project, you will find the code below with the message
Je suis l'ange gardien de cette communauté :innocent:
make any change on it.
for this example i will add "Algérienne" in the end of the sentence.
const whoami = (bot, msg) => { bot.reply(msg,
<@${msg.user}>: Je suis l'ange gardien de cette communauté Algérienne:innocent:) }
and restart your server. yarn start
- Now ask the same question that you asked before making the change
qui @iobot-dev
- the iobot-dev should respond by the following message:
Je suis l'ange gardien de cette communauté algérienne :innocent:
Now you are able to make our community bot more intelligent .. GO GO GO 🚀
- After you've added some changes make sure you don't break the coding style
npm run lint
- Commit and push your changes, then open up a pull request 🚀