Skip to content

This bot will tell you in the slack chat if a number is prime or not. If the number you enter is prime, the bot will give you an array with all the prime numbers before the entered number, and it can also solve simple sums and give the results on the chat. This bot uses the Slack-API, Active Record, PostgreSQL, and React to display prime numbers…

Notifications You must be signed in to change notification settings

balerum03/slack_bot_rails

Repository files navigation

Slack Bot

This project consist in the creation of a bot using the SlackRubyBot API, once connected you can interact with the bot using two commands, "add" and "prime?".

  • add, will solve a simple sum for you and send it to you on the Slack chat as a message.

  • prime?, will tell you all prime numbers below the number you enter.

How to use this Slack Bot.

  • After cloning this Repo, run
bundle install
  • Create an Slack Bot user. You can do this by visiting this page

  • Once your bot is created take your token and run (type your token where it says "your_token").

SLACK_API_TOKEN= your_token rails server

  • You'll see under the Apps tab, that your bot is going to be there so that you can interact with it while the server is running.

Built with

Video presentation

YouTube video part. 1

YouTube video part. 2

Author

Adan Fernandez Bonilla

🤝 Contributing

Contributions, issues and feature requests are welcome!

Feel free to check the issues page.

Show your support

Give a ⭐️ if you like this project!

About

This bot will tell you in the slack chat if a number is prime or not. If the number you enter is prime, the bot will give you an array with all the prime numbers before the entered number, and it can also solve simple sums and give the results on the chat. This bot uses the Slack-API, Active Record, PostgreSQL, and React to display prime numbers…

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published