Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update README.md #9

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 27 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ You will need:
5) Once you see the message "BUILD SUCCESSFUL in []s", a new folder will have been created called `build`
6) Go into this build folder, then into the libs folder
7) You will see a file named ayunpictojava-1.0-SNAPSHOT.jar or an equivalent, this is the compiled program!
8) Copy this file to its' own folder for running, and run it (`java -jar ayunpictojava-1.0-SNAPSHOT.jar`) (or whatever the .jar file is named)
8) Copy this file to it's own folder for running, and run it (`java -jar ayunpictojava-1.0-SNAPSHOT.jar`) (or whatever the .jar file is named)
9) You should see a line in the terminal saying that the server is running on 127.0.0.1:8080, once you see this you can try it out at http://localhost:8080

### Changing the port and bind address
Expand All @@ -37,4 +37,29 @@ To make tripcodes unique and reduce the risk of cracking, in the `settings.json`

### The captcha
To use the captcha, set the `secret` in the settings.json to your Cloudflare Turnstile captcha secret.
To disable the captcha entirely, edit the `www/index.html` file and search for `let token = false;` and change it to `let token = true;`. Then, remove or comment out the `<div id="captcha" ...` element and the `<script src="https://challenges.cloudflare.com/ ...` element.
To disable the captcha entirely, edit the www/index.html file and search for let token = false; and change it to let token = true;. Then, remove or comment out the <div id="captcha" ... element and the <script src="https://challenges.cloudflare.com/ ... element.

### Discord bot
1) To connect the pictochat to a discord bot, you first need to create a bot using the discord link : https://discord.com/developers/applications
2) Select "new application", give it a name and accept the TOS
3) Once done, go to the BOT tab and enable the "PRESENCE INTENT", "SERVER MEMBERS INTENT" and the "MESSAGE CONTENT INTENT"
4) Then grab the discord bot token, and inside the settings.json file created in the same folder as the .jar, put the token you copied inside of the "token": "" quotes
5) Change the "enabled": false to true
6) Specify wich channel you want the bots to be able to speak in using the ID of the channel you want the bot to be able to speak in (done by right clicking a channel and clicking "copy link")

You will then get the link of the channel by doing CTRL V, the link will look something like this, https://discord.com/channels//###################/###################, with the # being replaced by a code

Only the last chunk of numbers is important, copy them and paste them in the settings.json within theses lines:

"channels": [
"",
"",
"",
""

You can see that there is 4 double quotes, its here where you can choose wich pictochat room link to wich discord channel, with the top quotes being room A and going on from there downward

7) Inside of theses 2 quotes, paste the 19 numbers link to your discord channel, then save and lunch the jar again.


WARNING : IF THE DISCORD IS ENABLED IN THE SETTINGS, ANY ROOMS WHO HAVNT ANY CHANNELS ASSOCIATED WILL NOT WORK