Code Monkey home page Code Monkey logo

bottotto's Introduction

Bottotto (No longer maintained. archived)

Bottotto is a discord bot, which has various features that make your discord experience better.

For example, Bottotto can...

  • read aloud messages written in a specific text channel.
  • manage temporal private text channels.
  • and more...

Important Notices

This project is no longer maintained as it contains too many bugs. I think it will be so difficult to fix all of them, so I finally decided to archive this repository.

However, my dreams to create powerful discord bot is never ruined! I'm currently porting Bottotto by using JDA(Java Discord API). If you are interested in it, please check 'kottotto' repository.

My new project, kottotto is here :D

Features

Temporal Private Text Channel

When you enter a voice channel, Bottotto automatically creates a temporal private text channel. This channel is only visible from users in the voice channel.

When nobody exists in the voice channel, Bottotto automatically delete the temporal text channel to keep your discord server clean.

simplescreenrecorder-2022-08-21_15.37.53.mp4

Installation

Dependencies

Bottotto requires following dependencies.

  • Node.js v16 or above
  • OpenJTalk

Setting up config.json

Before running the program, you need to configure config.json properly. Wrong settings may cause accidental shutdown of your bot.

Here's the template of config.json.

{
  "token": "place the token of your discord bot here.",
  "root": "servers/",
  "clientId": "client id of your discord bot",
  "PATH_TO_OPEN_JTALK": "path to OpenJTalk executable.",
  "OPEN_JTALK_VOICE_PATH": "path to .htsvoice file.",
  "OPEN_JTALK_DICTIONARY_PATH": "path to OpenJTalk dictionary."
}

Install node modules

The node packages we need is configured in package.json. So what you need to do is just run

npm install

Deploy slash commands

Before you begin, you need to deploy slash commands. To do it, run

node deploy-commands.js

Run the program

To run the bot on your own system, just run

node main.js

However, you may want to run it continuously even if it was crashed by some accidents. To daemonize it, use forever.

forever node main.js

If you see ready... on your console, you are ready to go!

Disclaimer

Bottotto is still under developing and not maintained frequently. Please use this program at your own risk, and I take no responsibility for any loss or damage.

bottotto's People

Contributors

kitakkun avatar

Watchers

 avatar

bottotto's Issues

Bottotto doesn't speak under the specific condition.

Found a problem that Bottotto sometimes doesn't speak.
We can reproduce the problem by...

  1. Launch the node.js application(main.js)
  2. type "/read s" to start Text-To-Speech on Discord.
  3. type "/read e" to end Text-To-Speech on Discord.
  4. type "/read s" to start again.
  5. Now Bottotto is silent.

The cause of this problem is the Event queue.
The busy flag seems to remain 'true' under specific conditions.

Stop reading up URLs or IDs

Bottotto reads aloud URLs or ids literally. This might make users' experiences worse. Fix this problem as soon as possible.

Speaking volume is too laud

Bottotto currently doesn't support the adjustment of speaking volume. Adding volume control might be good for some users.

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.