This repository has been archived by the owner on Nov 22, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #22 from parafoxia/develop
Merge beta.3 version
- Loading branch information
Showing
60 changed files
with
385 additions
and
292 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 |
---|---|---|
|
@@ -254,8 +254,10 @@ $RECYCLE.BIN/ | |
*.lnk | ||
|
||
### Custom ### | ||
.images/.dev/ | ||
secrets/ | ||
*.db3 | ||
*.db3-journal | ||
*.db3-shm | ||
*.db3-wal | ||
TODO |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,62 @@ | ||
# S4 | ||
Server Safety and Security Systems designed to make your server a safer and better place. | ||
# Solaris | ||
A Discord bot designed to make your server a safer and better place. | ||
|
||
# Cloning and running | ||
I would greatly prefer if you invited Solaris to your server [here](https://discordapp.com/oauth2/authorize?client_id=661972684153946122&scope=bot&permissions=8) rather than run your own instance. With that being said, you are able to clone Solaris to your machine in order to test it or contribute. | ||
|
||
Solaris was also not designed with universal compatibility in mind. If you want to include sections of Solaris' code in your own program, you will likely need to make significant modifications. Make sure you abide by the terms of the license, which you can find in LICENSE. | ||
|
||
**Note:** As of v1.0.0-beta.3, these instructions haven't been fully tested. If they are wrong, open an issue. | ||
|
||
## Running with Docker | ||
**Warning**: Docker functionality in Solaris was designed specifically with Debian 10 Buster in mind. If you are using another OS, you may need to modify the Dockerfile. | ||
|
||
### Requirements | ||
- docker | ||
- docker-compose | ||
|
||
### Setup | ||
1. `cd` into the root directory (the one with this README in it). | ||
2. Run `mkdir secrets`. | ||
3. Create a file called "token" in the "/secrets" directory. | ||
4. Copy and paste your bot's token into the "token" file. | ||
5. `cd` back into the root directory. | ||
6. Run `docker-compose build`. | ||
|
||
**Note:** You may need to create a `[root]/solaris/data/dynamic` directory for the build to be successful. | ||
|
||
### Running | ||
1. `cd` into the root directory (the one with this README in it). | ||
2. Run `docker-compose up`. | ||
- To run silently, use the `-d` flag. | ||
|
||
## Running inside a virtual environment | ||
You should be able to run Solaris using this method on any OS. | ||
|
||
### Requirements | ||
- Python 3.8.0 or above | ||
|
||
### Setup | ||
1. `cd` into the root directory (the one with this README in it). | ||
2. Create a file called ".env" in this directory. | ||
3. Populate the ".env" file using the following template. Note that all but `TOKEN` are optional. | ||
``` | ||
TOKEN="xxxxxxxxxxxxxxxxxxxxxxxx.xxxxxx.xxxxxxxxxxxxxxxxxxxxxxxxxxx" | ||
DEFAULT_PREFIX=">>" | ||
HUB_GUILD_ID=<guild id> | ||
HUB_COMMANDS_CHANNEL_ID=<channel id> | ||
HUB_RELAY_CHANNEL_ID=<channel id> | ||
HUB_STDOUT_CHANNEL_ID=<channel id> | ||
``` | ||
4. Run `py -3 -m pip install poetry`. | ||
- You may need to use a different `pip` command depending on your Python configuration. | ||
5. Run `py -3 -m venv ./.venv`. | ||
6. Run `./.venv/Scripts/activate`. | ||
7. Run `poetry install`. | ||
### Running | ||
1. `cd` into the root directory (the one with this README in it). | ||
2. Run `py -3 -m solaris`. | ||
# Links | ||
[Invite Solaris to your server](https://discordapp.com/oauth2/authorize?client_id=661972684153946122&scope=bot&permissions=8) • [Invite Solaris to your server (non-admin privileges)](https://discordapp.com/oauth2/authorize?client_id=661972684153946122&scope=bot&permissions=403008598) • [Join the Solaris support server](https://discord.gg/c3b4cZs) • [See Solaris in action](https://discord.carberra.xyz) |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# S4 - A security and statistics focussed Discord bot. | ||
# Solaris - A Discord bot designed to make your server a safer and better place. | ||
# Copyright (C) 2020 Ethan Henderson | ||
|
||
# This program is free software: you can redistribute it and/or modify | ||
|
@@ -17,7 +17,7 @@ | |
# Ethan Henderson | ||
# [email protected] | ||
|
||
from s4 import Bot, __version__ | ||
from solaris import Bot, __version__ | ||
|
||
|
||
def main(): | ||
|
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.