ScriptureBot

command module
Version: v0.0.0-...-4995d05 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 9, 2020 License: MIT Imports: 8 Imported by: 0

README

Scripture Bot

This Telegram bot hopes to make the Bible more accessible, and hopefully to give a timely answer to those looking for it.

Feedback

Star this repo if you found it useful. Use the github issue tracker to give feedback on this repo.

Licensing

See LICENSE

Author

Hi, I'm Julwrites

Architecture

ScriptureBot is built as a 5 layer service:

  1. Web App (GET)
  2. Incoming Translation Layer from Platform specific properties
  3. Logic Layer
  4. Outgoing Translation Layer to Platform specific properties
  5. Web App (POST)

The Translation Layer is implemented in BotPlatform, which abstracts all the translation tasks from the Logic layer.

Additionally there is a BotSecrets integration with the WebApp layer which provides all sensitive data to the bot on a as-needed basis.

Code Guidelines

Code

We are using Go 1.12 for this version of the framework.

Naming Convention:

  • Variables should be named using camelCase.
  • Methods should be named using underscore_case.
  • Classes should be named using PascalCase.
  • Packages should be named using underscore_case, in keeping with Python STL.
  • Constants should be named using CAPITALCASE

This keeps the entities visually separate, and syntax clean.

As much as possible, each file should contain one of 3 things:

  • A class and related methods
  • A set of utility methods
  • Business logic/End point logic

This is intended to facilitate separation of responsibility for loose coupling.

Documentation

The Go Gopher

There is no documentation for this package.

Source Files

Directories

Path Synopsis
pkg
app
bot

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL