Git Product home page Git Product logo

gth-discord-bot's Introduction

Gallifreyan Translation Helper Discord Bot

by Mightyrong

This bot is an extension to the Gallifreyan Translation Helper, with the purpose of making it usable directly inside of Discord Chats. See the GTH GitHub for more information.


Commands

These commands are currently supported:

  • changePrefix {newPrefix}: Changes the prefix to call the bot
  • guides, guide, language, alphabets: Links to the r/gallifreyan wiki guide list
  • help: Displays this
  • ping: Pong!
  • translate {language} [text]: Sends image of translation
  • translator: Links to the GTH

gth-discord-bot's People

Contributors

mightyfrong avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Forkers

modisr

gth-discord-bot's Issues

Bug: certain input strings cause bot to crash

In particular, I have found that while none of these characters alone cause an issue, attempting to translate the string "@ล‚e" crashes the bot.

An investigation and some user input sanitisation is needed.

Migrate to REST

By moving to a RESTful API architecture, we will be able to eliminate dependency on the Puppeteer library and simplify the bot code.
The steps are as follows:

  1. Call the stub Hello API defined at http://modestas.ruksnaitis.com/gallifreyan/hello.php
  2. Port the languages one by one to the API, switching the bot from using Puppeteer for each one.
  3. Having ported all languages, clean up the bot code, eliminating any references to Puppeteer.

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.