项目作者: OMatics

项目描述 :
Simp'O'Matic Discord Bot.
高级语言: TypeScript
项目地址: git://github.com/OMatics/Simp-O-Matic.git
创建时间: 2020-03-08T18:15:08Z
项目社区:https://github.com/OMatics/Simp-O-Matic

开源协议:GNU Affero General Public License v3.0

下载


The Simp’O’Matic



Help Out

Currently some of the features in the HELP.md page, have not yet been
implemented. Please my friend, if you have the time, send some pull
requests our way.

Yours, Sammy, Danny, Accelarion, Bruno and jack-javana (Pinocchio Tortoise).

Why it is objectively superior

Let’s compare it to a similar discord bot, moiph/ub3r-b0t

Screenshot 2020-03-21 at 4 15 0
Screenshot 2020-03-21 at 4 14 34

Ub3r bot was added to the server 3 years ago, and Simp’o’Matic was only added 3 days ago, yet it had already overtaken it by the number of messages! On average it was used almost every minute, while ub3r bot was only used every few hours, so it’s great for increasing user activity

— Danny

Help / Bot-Commands

See HELP.md file (keep in mind, that the file has
been formatted for better viewing through Discord, might look funky
with GitHub rendering).

Getting Up & Running

Make sure you have node (v14.x) and yarn installed
(npm also possible). Clone the repo, and init submodules:

  1. git submodule update --init --recursive
  • Clean up from previous build/install:
    1. yarn clean
  • Install dependencies:
    1. yarn install
  • Build/Compile files:
    1. yarn build
  • Run the bot locally:
    1. yarn start

When starting the bot, you’ll need your secrets set up (API keys etc.).

Local Secrets

Make sure locally, you have the following secrets exported
as environment variables:

  1. # Discord
  2. export BOT_API_TOKEN="..."
  3. export CLIENT_KEY="..."
  4. export CLIENT_ID="..."
  5. # RapidAPI for Urban Dictionary and ContextualWeb
  6. export RAPID_API_KEY="..."
  7. # Oxford English Dictionary
  8. export OXFORD_ID="..."
  9. export OXFORD_KEY="..."
  10. # Google APIs
  11. export GOOGLE_API_KEY="..."
  12. export GOOGLE_SEARCH_ID="..."
  13. export GOOGLE_OAUTH_ID="..."
  14. export GOOGLE_OAUTH_SECRET="..."
  15. export GOOGLE_PERSONAL_CODE="..."
  16. export GOOGLE_TYPE="..."
  17. export GOOGLE_PROJECT_ID="..."
  18. export GOOGLE_PRIVATE_KEY_ID="..."
  19. export GOOGLE_PRIVATE_KEY="..."
  20. export GOOGLE_CLIENT_EMAIL="..."
  21. export GOOGLE_CLIENT_ID="..."
  22. export GOOGLE_AUTH_URI="..."
  23. export GOOGLE_TOKEN_URI="..."
  24. export GOOGLE_AUTH_PROVIDER_X509_CERT_URL="..."
  25. export GOOGLE_CLIENT_X509_CERT_URL="..."
  26. # Yandex
  27. export YANDEX_GEOCODER_KEY="..."
  28. export YANDEX_TRANSLATE_KEY="..."
  29. # MapBox
  30. export MAPBOX_KEY="..."
  31. # DarkSky Weather
  32. export DARKSKY_KEY="..."
  33. # JsonBlob
  34. export JSONBLOB_ID="..."
  35. # Web-hooks
  36. export WEB_SECRET="..."

I can send you the secrets file, if I really trust you.

Low on Space?

  1. yarn --global-folder ./node_modules/ --cache-folder ./node_modules/

License

See LICENSE file in repository root.
GNU Affero GPLv3 (AGPL-3.0)

Dependencies / Project Structure?

This graph should sort that right out for you.