No description
Find a file
Augusto Dwenger J. e52a3282e0
Some checks are pending
ci/woodpecker/push/java Pipeline is pending
ci/woodpecker/push/oci-image-build Pipeline is pending
discord-ws: Fix resume url
The resume url needs to use the same version and encoding as the initial
connection used to.
2024-12-18 17:19:35 +01:00
.woodpecker ci: Change buildx image to use anchors 2024-12-15 20:09:11 +01:00
bot misc: Make params final 2024-12-15 19:40:36 +01:00
discord-rest discord-rest: Fix status code expectation 2024-11-28 23:14:47 +01:00
discord-ws discord-ws: Fix resume url 2024-12-18 17:19:35 +01:00
openai-rest misc: Make params final 2024-12-15 19:40:36 +01:00
.dockerignore build: Package as jlink image 2024-11-27 21:05:05 +01:00
.gitignore misc: Update the docker-compose setup 2024-11-27 23:45:31 +01:00
docker-compose.yml misc: Update the docker-compose setup 2024-11-27 23:45:31 +01:00
Dockerfile build: Set dockerfile syntax to 1 2024-11-29 20:08:18 +01:00
example.properties misc: Update the docker-compose setup 2024-11-27 23:45:31 +01:00
LICENSE Change license from MIT to MPL-2.0 2023-05-16 03:06:52 +02:00
pom.xml misc: Update dependencies 2024-12-15 13:15:17 +01:00
README.md misc: Fix formatting 2024-11-29 00:49:16 +01:00

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.