This project consist of building a Telegram Bot using Ruby, With this Bot you can get a daily motivation, joke, new movie to watch, learn a new french word etc.
- Ruby
- Telegram-Bot API
- Type fit Quotes API
- Yo mamma Jokes API
- Rspec
To get a local copy up and running follow these simple example steps.
- On the project GitHub page, navigate to the main page of the repository.
- Under the repository name, locate and click on a green button named
Code
. - Copy the project URL as displayed.
- If you're running the Windows Operating System, open your command prompt. On Linux, Open your terminal.
- Change the current working directory to the location where you want the cloned directory to be made. Leave as it is if the current location is where you want the project to be.
- Type git clone, and then paste the URL you copied in Step 3.
e.g. $ git clone https://github.com/yourUsername/yourProjectName - Press Enter. Your local copy will be created.
- Go into the folder you cloned in this step 7 on your terminal e.g. $ cd Desktop/Capstone-Telegram-Bot
- Create an account on Telegram
- Navigate to your Telegram account
- Create a new bot using @BotFather
- Ask @BotFather your token and add it in your .env file
- Run
bin/main.rb
- Then run the commands in your bot
- In your root directory create a .env file
- Add variable Ex: token = 'add your token here'
- run gem install dotenv
- You are good to go
- /start to start the bot
- /motivate to get a motivational quote
- /laughter to get a joke of the day
- /movies to get a new movie to watch
- /learn to learn a new french word
- /stop to end the bot
Contributions, issues, and feature requests are welcome! Feel free to check the issues page.
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
👤 Delice Lydia
- Github: @DeliceLydia
- Twitter: @IngabireLydia3
- Linkedin: Delice Lydia
Shout out to Atipugin for the project inspirations
Give a ⭐️ if you like this project!