3rd Final Project in API Programming
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 this bot is to monitor lecture attendance data. While this RFID application is made by programmers to be able to help someone in filling the college attendance quickly and precisely. This RFID application is built with Visual Basic 6
programming language.
Part | Description |
---|---|
Features | • Reply Keyboard • Error Handling • User Log Activity • Attendance Data Monitoring • Auto Input Data |
Platform | • Google Apps Script • Freemysqlhosting |
Tools | Microsoft Visual Basic 6.0 Enterprise |
Function VB 6 | • keybd_event • Sleep |
Framework | Lumpia.js |
Code | • JavaScript • Visual Basic 6 |
Operation System | Windows 10 |
|
-
Go to the site:
https://www.freemysqlhosting.net/
->Register for an account
->Login
. -
Download & Extract this repository.
-
Import sql file in the directory:
Aplikasi-Presensi-Kuliah-dengan-RFID-disertai-Monitoring-Bot-Telegram\Assets\database\rfid_bot.sql
. -
Open the directory:
Aplikasi-Presensi-Kuliah-dengan-RFID-disertai-Monitoring-Bot-Telegram\Src\RFID\Aplikasi RFID Presensi Bot Pintar.vbp
, then find the modules section, please clickModule2 (Module2.bas)
. -
Fill in the
dbName
,dbUser
,password
sections according to your SQL Cloud.
-
Open
Module3 (Module3.bas)
, then fill in theRFID Card Code
,Telegram ID
, andTelegram Username
sections.
The addition of this data is done manually, so if there are more than 2 users then the source code needs to be adjusted again. -
Create a new project first on the platform:
Google apps script
. -
Add
new file
on the platformGoogle apps script
and regardingfile name
ornumber 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 clickSave
. -
Open the directory:
Aplikasi-Presensi-Kuliah-dengan-RFID-disertai-Monitoring-Bot-Telegram\Src\BOT\
-> Copy & paste the entire contents into the file available on the platformGoogle apps script
. -
Enter the
Library ID
in theLibrary
section:1Yo6vQRwjG5Gl9jeEF0g2tBTUa0XN5MyT4G_HeDpRr9DvabxhRcSdhPNj
-
Add
the library
-> Always selectthe highest version of the library
-> Save. -
Paste the
API bot token telegram
that you have obtained from@BotFather
as follows :// Token API const token = '6402342255:AAGF8UBcj7mPyaE8Fv_6rFlhIOc8Np1od3I';
-
Click
Apply
->New deployment
-> Select type:Web Application
. -
Contents
Description
-> In theAccess
section, please select the section:anyone can access
-> Apply. -
Review permissions -> Select
your email
-> Continue -> Openyour bot project (not secure)
-> Allow. -
Copy the
web app URL link
-> Paste the link into thelet url
section inconfig.gs
as follows:let url = 'https://api.telegram.org/bot1164101112:AA1BC1DI/setwebhook?url=https://script.google.com/macros/s/AKfycbyKodePanjang/exec';
-
Make sure the function being executed is
setWebHook
-> ClickRun
.Will be considered successful if the
execution log
reads:Info {ok=true, description=Webhook is already set, result=true}
. -
Please enjoy [Done].
RFID | |||
---|---|---|---|
Database | |
---|---|
Telegram Bot | |
---|---|
Disadvantages:
|
Via Telegram: @simonsen_bot
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.
This application is my own work and is not the result of plagiarism from other people's research or work, except those related to third party services which include: libraries, frameworks, and so on.
MIT License - Copyright © 2020 - Devan C. M. 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.