Kuroku-Bot

所属分类:聊天室
开发工具:JavaScript
文件大小:0KB
下载次数:0
上传日期:2023-11-10 15:01:29
上 传 者sh-1993
说明:  Web编程类| UPN Veteran Jatim|基于JavaScript的Telegram Chatbot|分配
(Web Programming Class | UPN Veteran Jatim | JavaScript-based Telegram Chatbot | Assignment)

文件列表:
BACA.md (7478, 2023-12-22)
LICENSE (1081, 2023-12-22)
assets/ (0, 2023-12-22)
assets/features/ (0, 2023-12-22)
assets/features/command.js (3508, 2023-12-22)
assets/features/response.js (40641, 2023-12-22)
assets/img/ (0, 2023-12-22)
assets/img/IMG1.jpg (1615099, 2023-12-22)
assets/img/IMG10.jpg (1623148, 2023-12-22)
assets/img/IMG2.jpg (1274875, 2023-12-22)
assets/img/IMG3.jpg (1315177, 2023-12-22)
assets/img/IMG4.jpg (1288217, 2023-12-22)
assets/img/IMG5.jpg (1047945, 2023-12-22)
assets/img/IMG6.jpg (1369003, 2023-12-22)
assets/img/IMG7.jpg (1898531, 2023-12-22)
assets/img/IMG8.jpg (2080506, 2023-12-22)
assets/img/IMG9.jpg (1672904, 2023-12-22)
config.js (895, 2023-12-22)

[![Open Source Love](https://badges.frapsoft.com/os/v1/open-source.svg?style=flat)](https://github.com/ellerbrock/open-source-badges/) [![License: MIT](https://img.shields.io/badge/License-MIT-green.svg)](https://opensource.org/licenses/MIT) ![GitHub last commit](https://img.shields.io/github/last-commit/devancakra/Bot-Telegram-JS-Sederhana) ![JS](https://img.shields.io/badge/javascript%20-%23323330.svg?&style=flat&logo=javascript&logoColor=%23F7DF1E) # 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.
## Features / Framework / Tools | Part | Description | | --- | --- | | Features | Custom 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: ```bash 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 : ```bash // 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 ``` index.gs ``` as follows: ```bash 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].
## 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.
## 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

## Demonstration of Application Via Telegram: @kuroku_bot
## 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 (c) 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.

近期下载者

相关文件


收藏者