Code Monkey home page Code Monkey logo

nonton-otakudesu's Introduction

Nonton Otakudesu

Pengen nonton atau download video dari otakudesu dengan mudah? Pakai bot Telegram juga bisa. Hanya dengan menjalankan script atau project ini, dengan mudah langsung menikmati tontonan anime dari web stream otakudesu.

Installation, and Deployment

  1. Kamu tentunya membutuhkan server untuk menjalankan script/project ini (spesifikasi RAM minimal 1GB, dan kecepatan Internet yang memadai), dan server database MySQL
  2. Install NodeJS melalui situs resminya atau melalui distribusi lainnya.
  3. Install dependencies dengan package manager kesukaan kalian (it could be yarn, pnpm, npm, etc...)
  4. Buat file .env dengan isi sesuai dengan file .env.example, dan isi variabel atau parameter yang dibutuhkan.
  5. Build/compile project dengan menjalankan pnpm run build atau npm run build atau yarn build
  6. Setelah proses kompilasi selesai, program udah ready untuk dijalankan, jalankan node dist/index.js

Bugs / Features Request

Just create an issue, thanks!

License

Apache-2.0

nonton-otakudesu's People

Contributors

hansputera avatar

Stargazers

 avatar  avatar

Watchers

 avatar

nonton-otakudesu's Issues

TODO

Todo List

  • Menambahkan slash command support.
Contoh slash command:
 1. /download https://otakudesu.lol/episode/...
 2. /cari@utekedesu_bot One piece
 3. /download@utekedesu_bot https://otakudesu.lol/episode/....
  • Bot mampu mengolah kembali pesan masa lalu apabila user mengedit pesan sebelumnya.
Contohnya:
---------------------
User (pesan baru) : /cari Boruto  (pesan A)
Bot (pesan baru): "Boruto (...)" (pesan B)

(setelah 5 detik atau beberapa lamanya)

User (edit pesan): /cari One Piece (pesan A)
Bot (edit pesan): "One Piece (...)" (pesan B)

--------------------------
Maksud disini ialah bot mampu menggunakan kembali pesan yang berlalu apabila user mengedit pesan sebelumnya juga. 
Untuk expiration time disini maksimal adalah 1 menit untuk mengurangi memory usage.
(I'll use file caching in next time)
  • Menambahkan button data caching (expiration time = 5 mins)
  • Menambahkan fitur query resolver (untuk resolve permintaan dengan username request)
Contohnya:
1. @utekdesu_bot cari one piece
2. @utekedesu_bot download https://otakudesu.lol/episode/...
  • Membuat commands handler
## Command Handler File Schema:

Arg# -> Object
Arg#name -> String
Arg#type -> Union(Option, Arg)
Arg#required -> Boolean

Command# -> Class
Command#name -> String
Command#aliases -> Array<String>
Command#args -> Array<Arg>
Command#flags -> Array<String>
Command#handle -> AsyncFunction(m -> [@structures/Message.js:MessageEvent]): void


## [@frameworks/GramJs.ts]

TelegramFramework#
TelegramFramework#(...)
TelegramFramework#commands -> KeyValue<@Key -> string, @Value -> Command>
  • Membuat table dalam database MySQL untuk menyimpan data file yang telah terdownload
Table `files` schema:

id -> INT INCREMENT NOT NULL
file_id -> UNSIGNED BIGINT NOT NULL
chat_id -> UNSIGNED INT NOT NULL
created_at -> DATETIME NOT NULL
updated_at -> DATETIME NOT NULL

Bug: MP4Upload Mirror

The bot couldn't download or scrape the original url if the mirror url is in mp4upload.com

Screenshot_2023-08-07-00-31-24-856_org.telegram.messenger.jpg

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.