Skip to content

Commit

Permalink
v0.3.8 verbosLevel
Browse files Browse the repository at this point in the history
  • Loading branch information
banghasan committed Apr 19, 2021
1 parent 160c669 commit 3b22f1e
Show file tree
Hide file tree
Showing 18 changed files with 55 additions and 1,019 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ data_userbot/
data_botapi/
bak/

#data/*
data/*

# Logs
logs
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@ Jika menggunakan OS lain, compile sendiri ya.

Setingan diletakkan pada `config.js`

Detail baca di halaman [TDLib](https://github.com/banghasan/hsubot/blob/main/doc/tdlib.md)

#### Android

Download [https://core.telegram.org/tdlib/tdlib.zip](https://core.telegram.org/tdlib/tdlib.zip)
Expand Down
2 changes: 1 addition & 1 deletion app.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module.exports = {
nama: 'HSUBot',
versi: '0.3.7b',
versi: '0.3.8b',
programmer: 'Hasanudin H Syafaat',
email: 'banghasan@gmail.com',
telegram: '@hasanudinhs',
Expand Down
6 changes: 4 additions & 2 deletions config_sample.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,16 @@ module.exports = {
admin:
{
active: true, // <-- aktifkan jika ingin membatasi bot dipergunakan oleg admin saja
id: [123456], // jika skipme false, dan admin true.. id bot harus dimasukkan di sini
id: [ // jika skipme false, dan admin true.. id bot harus dimasukkan di sini
213567634,
],
},

// detail aplikasi

// untuk keperluan plugins
base: {
uploadPath : '',
uploadPath: '',
},

// override plugins status
Expand Down
10 changes: 9 additions & 1 deletion doc/history.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,21 @@ First Rilis `18 April 2021`
+ [.3.6] TGLib v1.2: sendAction, getMessage.
+ [.3.6] Firmware: example sendAction impl. file

v.0.3.7, 19 April 2021
v.0.3.7, `19 April 2021`

+ [.3.7] Config: overide status plugins. Update Example Config.
+ [.3.7] Plugins: +upload (Foto, Video, Doc, dll), +bash
+ [.3.7] Helper: bug fixes
+ [.3.7] TGLib v1.2.1: bug fix, fileType untuk localFileinput

v.0.3.8, `20 April 2021`

+ Login nomor jadi bersih, set debug level ke `0`. Jika ingin mendebug, naikkan levelnya.
+ Bugfixes
+ [.3.8] Config: Debug level bereffect ke verbosityLevel
+ [.3.8] Membersihkan file tidak dipakai


### v0.2 a

`17 April 2021`
Expand Down
30 changes: 30 additions & 0 deletions doc/tdlib.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
## TDLib

Bisa build sendiri dengan mengikuti petunjuk:

[https://github.com/tdlib/td#building](https://github.com/tdlib/td#building)

### Generator

[https://tdlib.github.io/td/build.html](https://tdlib.github.io/td/build.html)

### Android

Download [https://core.telegram.org/tdlib/tdlib.zip](https://core.telegram.org/tdlib/tdlib.zip)

### Versi Ini

Aku build di server ubuntu 20.04, tanggal 31 Maret 2021

Versi 1.7.3

### Versi Lama

Download Pre-built versi lain: [https://github.com/ForNeVeR/tdlib.native/releases](https://github.com/ForNeVeR/tdlib.native/releases)

## Support

Hasanudin H Syafaat
banghasan@gmail.com

[@botindonesia](https://t.me/botindonesia)
18 changes: 8 additions & 10 deletions module/client.js
Original file line number Diff line number Diff line change
@@ -1,30 +1,28 @@
const { Client } = require('tdl')
const { TDLib } = require('tdl-tdlib-addon')
// const { Client } = require('../tdlib/tdl')
// const { TDLib } = require('../tdlib/tdlib')
const { API_ID, API_HASH, BOT_TOKEN, BOT_API, pathTDLib } = require('../config.js');
const CONFIG = require('../config.js');
const APP = require('../app.js');
// add timestamps in front of log messages
require('console-stamp')(console, 'HH:MM:ss.l');

const API_BOT_AUTH = {
type: 'bot',
token: BOT_TOKEN, // in document say write this line but
getToken: () => BOT_TOKEN // if this line dont set pakase get error and dont work
token: CONFIG.BOT_TOKEN, // in document say write this line but
getToken: () => CONFIG.BOT_TOKEN // if this line dont set pakase get error and dont work
}

let pathData = BOT_API ? './data_botapi' : './data_userbot'
let pathData = CONFIG.BOT_API ? './data_botapi' : './data_userbot'

const tdlib = new TDLib(pathTDLib)
const tdlib = new TDLib(CONFIG.pathTDLib)

const client = new Client(tdlib, {
apiId: API_ID,
apiHash: API_HASH,
apiId: CONFIG.API_ID,
apiHash: CONFIG.API_HASH,
databaseDirectory: pathData + '/_td_database',
filesDirectory: pathData + '/_td_files',

skipOldUpdates: true,
verbosityLevel: 2,
verbosityLevel: CONFIG.debug.level,

tdlibParameters: {
enable_storage_optimizer: true,
Expand Down
21 changes: 0 additions & 21 deletions tdlib/readme.md

This file was deleted.

Binary file removed tdlib/td.node
Binary file not shown.
Loading

0 comments on commit 3b22f1e

Please sign in to comment.