working reporting system

This commit is contained in:
erik-sn committed 2020-10-29 19:13:07 -04:00
1 parent 8c1f823bcb
commit ea77114da6
19 files changed
+264 -43

No files matched your search

+15 -1
View File
@@ -4,6 +4,7 @@ TODO
## Production Server Installation
### Configuration
This resource is highly configurable through the [config.json](./config.json). This JSON file holds configuration for the phone itself, for the apps running on it and peripheral information.
@@ -25,17 +26,30 @@ Below is the list of configuration options:
| twitter.generateProfileNameFromUsers | true | Whether or not the server should automtically generate a player's profile name from their user in the database |
| twitter.allowEdtiableProfileName | true | Whether or not players can edit their profile name |
| twitter.allowDeleteTweets | true | Whether or not players can delete their own tweets |
| twitter.allowReportTweets | true | Whether or not players can report tweets. Optional discord integration. |
| twitter.characterLimit | 240 | Limit on how many characters tweets can contain |
| twitter.enableAvatars | true | Whether or not player's can select avatars for their twitter profile |
| twitter.enableEmojis | true | Whether or not player's can use emojis in tweets |
| twitter.enableImages | true | Whether or not player's can add images to tweets (external URLs) |
| twitter.maxImages | 3 | The maximum amount of images allowed in a tweet |
### Discord
It is possible to perform discord integration with the phone. To configure discord add the following variables to your `server.cfg` file:
```
set discord_bot_token "YOUR_DISCORD_BOT_TOKEN"
set discord_channel_id "YOUR_DISCORD_CHANNEL_ID"
```
Current discord integrations with the phone:
- Twitter: reporting tweets
## Development
This phone is a [React](https://reactjs.org/) project with a LUA client/server environment.
This phone is a [React](https://reactjs.org/) project with a TypeScript client/server environment.
### Prerequisites