Skip to content

MiramarCISC/DiscordClubBot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Prerequisites

  1. JDK 21
  2. Maven 3

Dependencies

  1. Spring Boot 3
  2. Spring JPA
  3. H2 SQL Database
  4. discord4j
  5. flyway db version management

Folder Structure

  • /config spring bean configurations
  • /discord the bot's listeners
  • /model classes persisted to DB
  • /repository JPA database interfaces
  • /security access control by discordId and services
  • /service wrapper around databases with access control and input/output validation
  • SdcsDiscordBotApplication - the main class

Required environment variables to run and test

DISCORD_TOKEN - get from https://discord.com/developers/applications DISCORD_SERVER_ID - get from Discord client

How to compile and build executable jar

mvn clean install spring-boot:repackage

How to run

java -jar target/DiscordClubBot-0.0.1-SNAPSHOT.jar

Or using IntelliJ, just press the green Play button next to DiscordClubBotApplication.main()

Version control

  • Use gitflow
  • Git branches:
    • master - mainline stable branch, latest released production code
    • hotfixes/HOTFIX_NAME - branched from master, contains fix for production code
    • development - mainline stable branch, latest development code
    • features/FEATURE_NAME - branched from development, brand new feature
    • releases/VERSION - working branch to merge release code, typically development onto master
    • tags/VERSION - stable release candidate for production

About

Discord bot for managing student club business.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages