Skip to content
This repository has been archived by the owner on Mar 26, 2024. It is now read-only.

devancakra/Kuroku-Bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Open Source Love License: MIT GitHub last commit JS

Kuroku-Bot

UPN Veteran Jatim Website Programming Assignment

This Telegram-based ChatBot is built on the Google App Scripts platform using Javascript as the programming language. The framework used is Lumpia.js. The purpose of making this bot is to help someone understand more about the type, food, habitat and how to maintain the health of their pets.



Project Requirements

Part Description
Features Reply Keyboard, Inline Keyboard, Error Handling, User Log Activity, Markdown Message
Platform Google Apps Script
Framework Lumpia.js
Code JavaScript



Bot Capabilities

  1. There are menu options that can be accessed by clicking or typing.

  2. Another ability of this bot is that it can provide notification to the bot owner that someone has accessed a certain menu, so that the bot owner can monitor the movements that occur directly.

  3. There is problem control in the system.

  4. Attractive and educational display.



Get Started

  1. Download this repository.

  2. Create a new project first on the platform: Google apps script.

  3. Add new file on the platform Google apps script and regarding file name or number of files can be different according to your own creation, because this will not affect the performance of the bot system -> then don't forget to click Save.

  4. Extract Kuroku-Bot -> Open the entire file with the extension Javascript (.js) -> Copy & paste the entire contents into the file available on the platform Google apps script.

  5. Enter the Library ID in the Library section:

    1Yo6vQRwjG5Gl9jeEF0g2tBTUa0XN5MyT4G_HeDpRr9DvabxhRcSdhPNj

  6. Add the library -> Always select the highest version of the library -> Save.

  7. Paste the API bot token telegram that you have obtained from @BotFather as follows :

    // Token API
    const token = '1264610746:AAF3HuLDWCPKIGcinRY5Uf-qTpsWWw_jN0K';

  8. Click Apply -> New deployment -> Select type: Web Application.

  9. Contents Description -> In the Access section, please select the section: anyone can access -> Apply.

  10. Review permissions -> Select your email -> Continue -> Open your bot project (not secure) -> Allow.

  11. Copy the web app URL link -> Paste the link into the let url section in config.gs as follows:

    let url = 'https://api.telegram.org/bot1164101112:AA1BC1DI/setwebhook?url=https://script.google.com/macros/s/AKfycbyKodePanjang/exec';

  12. Make sure the function being executed is setWebHook -> Click Run.

    Will be considered successful if the execution log reads: Info {ok=true, description=Webhook is already set, result=true}.

  13. Enjoy [Done].



Highlights

Telegram Bot Interaction View
bot-1 bot-2 bot-3 bot-4
bot-5 bot-6 bot-7 bot-8
bot-9 bot-10 bot-11 bot-12



Reminder

• Pay attention to writing good and correct syntax in JavaScript because it greatly affects the bot that is developed.

• Make sure your PC/Laptop is connected to the internet.

• If you find that the project is not working as you expected, then there are two possibilities: either the error is in the syntax or the error is in an outdated library, so this may cause you to have to find another way out.



Demonstration of Application

Via Telegram: @kuroku_bot



Appreciation

If this work is useful to you, then support this work as a form of appreciation to the author by clicking the ⭐Star button at the top of the repository.



Disclaimer

This application has been created by including third-party sources. Third parties here are service providers, whose services are in the form of libraries, frameworks, and others. I thank you very much for the service. It has proven to be very helpful and implementable.



LICENSE

MIT License - Copyright © 2023 - Devan Cakra Mudra Wijaya

Permission is hereby granted without charge to any person obtaining a copy of this software and the software-related documentation files to deal in them without restriction, including without limitation the right to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons receiving the Software to be furnished therewith on the following terms:

The above copyright notice and this permission notice must accompany all copies or substantial portions of the Software.

IN ANY EVENT, THE AUTHOR OR COPYRIGHT HOLDER HEREIN RETAINS FULL OWNERSHIP RIGHTS. THE SOFTWARE IS PROVIDED AS IS, WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, THEREFORE IF ANY DAMAGE, LOSS, OR OTHERWISE ARISES FROM THE USE OR OTHER DEALINGS IN THE SOFTWARE, THE AUTHOR OR COPYRIGHT HOLDER SHALL NOT BE LIABLE, AS THE USE OF THE SOFTWARE IS NOT COMPELLED AT ALL, SO THE RISK IS YOUR OWN.

Releases

No releases published

Packages

No packages published