No description
Augusto Dwenger J.
e52a3282e0
The resume url needs to use the same version and encoding as the initial connection used to. |
||
---|---|---|
.woodpecker | ||
bot | ||
discord-rest | ||
discord-ws | ||
openai-rest | ||
.dockerignore | ||
.gitignore | ||
docker-compose.yml | ||
Dockerfile | ||
example.properties | ||
LICENSE | ||
pom.xml | ||
README.md |
dchat
A ChatGPT Bot for Discord.
Installation
Requirements:
Clone the project
git clone https://git.hhhammer.de/hamburghammer/dchat.git
cd dchat
Obtain the images
Build the images
docker compose build
Configure environment
cp example.properties dchat.properties
Fill the required variables.
Start
docker compose up -d
The bot can now be invited with the following
URL: https://discord.com/oauth2/authorize?client_id=<application-id>&scope=applications.commands%20bot&permissions=513
Logging
Logging can be configured via a Logback configuration.
The default logger configuration can be overwritten with
the LOGBACK_CONFIGURATION_FILE
variable with the path to the file.
One can add following example configuration to configure the logger for the de.hhhammer.dchat.discord.ws
package to
log
the DEBUG
level:
<configuration>
<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
<encoder>
<pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger - %msg%n</pattern>
</encoder>
</appender>
<logger name="de.hhhammer.dchat.discord.ws" level="DEBUG"/>
<root level="INFO">
<appender-ref ref="STDOUT"/>
</root>
</configuration>
For more information regarding the logger configuration refer to the manual.
LICENSE
The software is licensed under the MPL-2.0 license.