-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Flatten directory structure and other confusions (#53)
* Flatten file structure * Change package domain to yttr.org * Slightly restructure shared project * Move SkillDirector and WebhookDirector * Fix weird copyright comment update issue * Suffix extensions with Ext * Move more directors under skills May think about retiring the concept of directors * Get rid of useless Key enum * Set up HOCON * Replace getenv with HOCON and update JRAW * Use HOCON in glyph-config too * Update README to explain more about self hosting
- Loading branch information
Showing
118 changed files
with
658 additions
and
555 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,30 @@ | ||
[![GitHub](https://img.shields.io/github/license/glyph-discord/glyph.kt)](https://github.com/glyph-discord/glyph.kt/blob/master/LICENSE) | ||
[![GitHub Workflow Status (branch)](https://img.shields.io/github/workflow/status/glyph-discord/glyph.kt/Java%20CI/master)](https://github.com/glyph-discord/glyph.kt/actions) | ||
[![GitHub Sponsors](https://img.shields.io/github/sponsors/yttrian)](https://github.com/sponsors/yttrian) | ||
[![Discord Bots](https://discordbots.org/api/widget/status/248186527161516032.svg?noavatar=true)](https://discordbots.org/bot/248186527161516032) | ||
[![Discord Bots](https://discordbots.org/api/widget/servers/248186527161516032.svg?noavatar=true)](https://discordbots.org/bot/248186527161516032) | ||
|
||
# glyph.kt | ||
|
||
The Kotlin rewrite of the Glyph Discord bot | ||
The Kotlin rewrite of the Glyph Discord bot. | ||
|
||
Glyph is an experimental Discord bot that uses [DialogFlow](https://dialogflow.com/) to attempt to understand and process natural language requests as opposed to a traditional command based bot. | ||
Glyph is an experimental Discord bot that uses [DialogFlow](https://dialogflow.com/) to attempt to understand and | ||
process natural language requests as opposed to a traditional command based bot. | ||
|
||
To learn more about how to use Glyph, check out the documentation [here](https://gl.yttr.org/). | ||
|
||
## Self Hosting | ||
|
||
In order to host your own copy of Glyph, some set up will be required. | ||
|
||
This will be further documented in detail later, but the basic idea is that you will need to create and train an agent on DialogFlow to respond to different prompts, and set all the needed environmental variables used in the code. | ||
1. Create and train a [DialogFlow](https://dialogflow.cloud.google.com/) agent that understands all actions Glyph's | ||
skills refer to | ||
- Action is in the format "skill.feedback" | ||
- All references entities must be understood too | ||
- A free ("Trial") plan is sufficient | ||
- You should disable "Log interaction to Dialogflow" | ||
2. Create a Reddit application for the Reddit skill | ||
3. Create a PostgreSQL database and Redis data store | ||
4. Set the needed environment variables as seen in the application.conf files | ||
5. Build and start the bot and config website | ||
|
||
If you modify Glyph, [you must make your source code and changes publicly available](LICENSE). |
45 changes: 0 additions & 45 deletions
45
bot/src/main/kotlin/me/ianmooreis/glyph/bot/directors/config/Key.kt
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.