Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
ShindouMihou committed Jun 21, 2021
2 parents 0dd2b54 + 13fac09 commit be794ec
Showing 1 changed file with 49 additions and 26 deletions.
75 changes: 49 additions & 26 deletions readme.md
Original file line number Diff line number Diff line change
@@ -1,32 +1,62 @@
#### Amelia, a Discord Bot of Waters.

# Amelia
Amelia is a simple Discord bot that is used to fetch RSS feeds, and updates users
about a certain author updating their stories.
about a certain author updating their stories or to receive trending notifications whenever your story trends.

#### Requirements
- Java 11.
- MongoDB.
- A server, naturally.
## Requirements
The specification requirements for Amelia are as of follows:
- OpenJDK 11 (or JDK 11)
- A MongoDB server.
- A server that is at least 1.5 gigabytes of memory and 2 vCPUs.

#### How to install, public bot.
## How to install, public bot.

The Amelia bot is already hosted publicly on our servers, as such, you can add it to your own
discord server by inviting it from our website.

[Invite the bot now](https://paradoxium.xyz/amelia)

discord server by inviting it from our website. [Invite the bot now](https://discord.com/oauth2/authorize?client_id=786464598835986483&scope=bot&permissions=67488832)

#### How to install, self-hosting.
## How to install, self-hosting.
If you want to install this on your own server, first, create a Discord bot application on https://discordapp.com/developers,
after which, you need to have a MongoDB server installed on either a Windows or a Ubuntu server, I will not go into detail
over how to do this but if you need a good tutorial, then the official MongoDB website is the way to go.

https://docs.mongodb.com/manual/tutorial/install-mongodb-on-ubuntu/

Now, that you have both the MongoDB server and the Discord bot application, grab your token from the Discord App's Developer Portal,
then add it into your System Environmental Variables as `amelia_token` before adding the connection string of your MongoDB server
to the variables as `amelia_db`.
### Setting up Amelia Websocket.
Amelia Websocket, which is a new addition implemented on Amelia 2.0, is a separate process of Amelia which can be said as the heart or the brain
of the Discord bot. The websocket handles the checking for updates on RSS Feeds and also Trending Notifications.

### Installation of Amelia Websocket.
To install the websocket, you need to download the websocket jar from the [releases page](https://github.com/ManaNet/Amelia/releases) and then setup the following
environment variables.
```
amelia_auth=AUTHENTICATION
amelia_db=mongodb://user:pass@ip:port
(OPTIONAL) amelia_websocket=ws://ip:3201/
```

After the environment variables are set, you can now start up the websocket with no configuration via: `java -jar Amelia-Websocket.jar`.

### Setting up Amelia Client.
After the Websocket application is running, you can now start with the Client application.

#### Instructions
1. Retrieve your token from [Discord App's Developer Portal](https://discord.com/developers/)
2. Add the token onto your System Environmental Variables as `amelia_token`.
3. Check your Java Version whether it is JDK 11.
4. Download the Client jar file and run it via `java -jar Amelia.jar`

#### JDK Version Example
After all of that is done, make sure you have Java 11 by opening your terminal and using `java --version`, it should return something amongst the likes of this.
```
openjdk 11.0.9.1 2020-11-04
OpenJDK Runtime Environment (build 11.0.9.1+1-Ubuntu-0ubuntu1.18.04)
OpenJDK 64-Bit Server VM (build 11.0.9.1+1-Ubuntu-0ubuntu1.18.04, mixed mode, sharing)
```

## Output Image Examples
![Amelia Websocket](https://media.discordapp.net/attachments/733025925683347596/851566821521227826/unknown-66.png?width=1373&height=533)
![Amelia Client](https://media.discordapp.net/attachments/733025925683347596/851566821761089576/unknown-102.png)

## Extra Links
For more details about connection strings, please head to the official MongoDB documentation site.

https://docs.mongodb.com/manual/reference/connection-string/
Expand All @@ -43,13 +73,6 @@ https://docs.oracle.com/en/database/oracle/r-enterprise/1.5.1/oread/creating-and

https://www.computerhope.com/issues/ch000549.htm

After all of that is done, make sure you have Java 11 by opening your terminal and using `java --version`, it should return something amongst the likes of this.
```
openjdk 11.0.9.1 2020-11-04
OpenJDK Runtime Environment (build 11.0.9.1+1-Ubuntu-0ubuntu1.18.04)
OpenJDK 64-Bit Server VM (build 11.0.9.1+1-Ubuntu-0ubuntu1.18.04, mixed mode, sharing)
```
or it could be something higher the JDK 11, that is fine.

Now, that everything is done, simply head to the Releases section of this Github page and download the Fat .jar
from there, and place it on a place where you can access then simply call `java -jar Amelia.jar` and it should be running.
## Contribute
[Amelia Websocket Repository](https://github.com/ManaNet/Amelia-Websocket)
[Amelia Client Repository](https://github.com/ManaNet/Amelia)

0 comments on commit be794ec

Please sign in to comment.