Skip to content

Commit

Permalink
Clean
Browse files Browse the repository at this point in the history
  • Loading branch information
SlavyanDesu committed Apr 4, 2021
1 parent b0150fd commit 9c53c03
Show file tree
Hide file tree
Showing 6 changed files with 58 additions and 175 deletions.
13 changes: 7 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<div align="center">
<img src="https://images5.alphacoders.com/911/911614.png" alt="BocchiBot" width="500" />

# _**BocchiBot**_
# **BocchiBot**

> BocchiBot is a multipurpose WhatsApp bot using wa-automate-nodejs library!
>
Expand Down Expand Up @@ -48,6 +48,7 @@
* [Git](https://git-scm.com/downloads)
* [FFmpeg](https://www.gyan.dev/ffmpeg/builds/)
* [libwebp](https://developers.google.com/speed/webp/download)
* [Tesseract](https://s.id/vftesseract)
* Any text editor

# Installation
Expand Down Expand Up @@ -84,7 +85,7 @@ Edit the required value in `config.json`.
`melodic`: MelodicXT API key. You can use `administrator` key.
`tobz`: Tobz API key. You can use `BotWeA` key.
`lol`: LolHuman API key. You can get it [here](https://lolhuman.herokuapp.com/) by creating an account.
`authorStick`: author sticker pack.
`authorStick`: name of the author sticker pack.
`packStick`: name of the sticker pack.

## 🗣️ Changing language
Expand All @@ -99,13 +100,13 @@ eng.wrongFormat()
```

## 🧾 Installing the Tesseract
* Download the Tesseract program [here](https://s.id/vftesseract).
* Run the downloaded tesseract program with run As Administrator.
* Run installation.
* Download the file [here](https://s.id/vftesseract).
* After that, run downloaded file as Administrator.
* Complete the installation.
* Run Command Prompt as Administrator.
* Run this command:
```cmd
> setx /m PATH "C:\Tesseract-OCR;%PATH%"
> setx /m PATH "C:\Program Files\Tesseract-OCR;%PATH%"
```
It will give us a callback like `SUCCESS: specified value was saved`.
* Now that you've Tesseract installed, verify that it's working by running this command to see version number:
Expand Down
3 changes: 3 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ const start = (bocchi = new Client()) => {
console.log(color('[DEV]', 'cyan'), color('Welcome back, Owner! Hope you are doing well~', 'magenta'))

// Uncomment code di bawah untuk mengaktifkan auto-update file changes. Tidak disarankan untuk long-time use.
// Uncomment code below to activate auto-update file changes. Not recommended for long-time use.
// loader.nocache('../message/index.js', (m) => console.log(color('[WATCH]', 'orange'), color(`=> '${m}'`, 'yellow'), 'file is updated!'))

bocchi.onStateChanged((state) => {
Expand Down Expand Up @@ -47,6 +48,7 @@ const start = (bocchi = new Client()) => {

bocchi.onMessage((message) => {
// Uncomment code di bawah untuk mengaktifkan auto-delete cache pesan.
// Uncomment code below to activate auto-delete message cache.
/*
bocchi.getAmountOfLoadedMessages()
.then((msg) => {
Expand All @@ -59,6 +61,7 @@ const start = (bocchi = new Client()) => {
*/

// Comment code msgHandler di bawah untuk mengaktifkan auto-update. Kemudian, uncomment code require di bawah msgHandler.
// Comment code below to activate auto-update. Then, uncomment require code below msgHandler.
msgHandler(bocchi, message)
// require('./message/index.js')(bocchi, message)
})
Expand Down
Loading

0 comments on commit 9c53c03

Please sign in to comment.