{"id":24930454,"url":"https://github.com/motoki317/moto-bot","last_synced_at":"2025-10-17T10:31:28.733Z","repository":{"id":37833175,"uuid":"225839721","full_name":"motoki317/moto-bot","owner":"motoki317","description":"Discord bot for Wynncraft utility commands! (version 2, refactored)","archived":false,"fork":false,"pushed_at":"2023-10-20T02:39:51.000Z","size":15535,"stargazers_count":5,"open_issues_count":10,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2023-10-20T12:06:21.325Z","etag":null,"topics":["bot","discord","discord-bot","minecraft","wynncraft"],"latest_commit_sha":null,"homepage":"https://discord.gg/hdKfEeV","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/motoki317.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2019-12-04T10:25:10.000Z","updated_at":"2023-08-01T13:07:49.000Z","dependencies_parsed_at":"2023-10-20T06:02:42.672Z","dependency_job_id":null,"html_url":"https://github.com/motoki317/moto-bot","commit_stats":null,"previous_names":[],"tags_count":87,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/motoki317%2Fmoto-bot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/motoki317%2Fmoto-bot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/motoki317%2Fmoto-bot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/motoki317%2Fmoto-bot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/motoki317","download_url":"https://codeload.github.com/motoki317/moto-bot/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":236801355,"owners_count":19207034,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bot","discord","discord-bot","minecraft","wynncraft"],"created_at":"2025-02-02T13:54:32.271Z","updated_at":"2025-10-17T10:31:23.361Z","avatar_url":"https://github.com/motoki317.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# moto-bot\n\n[![](https://github.com/motoki317/moto-bot/workflows/Build%20and%20Test/badge.svg)](https://github.com/motoki317/moto-bot/actions?query=workflow%3A%22Build+and+Test%22)\n[![](https://github.com/motoki317/moto-bot/workflows/Release%20master/badge.svg)](https://github.com/motoki317/moto-bot/actions?query=workflow%3A%22Release+master%22)\n[![](https://github.com/motoki317/moto-bot/workflows/Release%20version/badge.svg)](https://github.com/motoki317/moto-bot/actions?query=workflow%3A%22Release+version%22)\n\nA discord bot for Wynncraft utility commands, written in Java using JDA.\n\nSee usage (old v1 info):\nhttps://forums.wynncraft.com/threads/223425/\n\n## Development\n\nSome useful shortcuts for development are written in `Makefile`.\n\n- `make build` to (re-)build the image and launch the bot.\n- `make up` to launch the bot (does not rebuild the image).\n- `make down` to stop the bot and DB.\n\nFor debugging:\n- `make db-up` to launch only the DB container.\n- `make db` to connect to DB (password: `password`).\n- `mvn test` to run tests. DB container needs to be launched.\n\n## Production\n\nYou can either manually build and install the bot, or pull image from the release.\nUsing docker might be easier but overheads could be a problem in small servers.\n\n### Manual Installation\n\nManual build and installation (does not use docker)\n\n1. Clone this repository.\n2. Install correct version of MariaDB (see `docker-compose.yaml` at root).\n3. Execute sql files in `mysql/init` directory.\n4. Set these environment variables for the bot.\n    - `PORT` ... Server port. Exposes Prometheus metrics on `/metrics`.\n    - `DISCORD_ACCESS_TOKEN` ... Discord bot account access token\n    - `BOT_DISCORD_ID` ... Discord user ID of the bot\n    - `BOT_LOG_CHANNEL_0` ~ `BOT_LOG_CHANNEL_4` ... Discord channel IDs to which bot sends logs\n    - `PLAYER_TRACKER_CHANNEL` ... Discord channel ID to which bot sends player number logs once a day\n    - `BOT_RESTART_CHANNEL` ... Discord channel ID to which bot sends a log on every restart\n    - `MYSQL_HOST` ... MariaDB host name\n    - `MYSQL_PORT` ... MariaDB port\n    - `MYSQL_DATABASE` ... MariaDB database name\n    - `MYSQL_USER` ... MariaDB username\n    - `MYSQL_PASSWORD` ... MariaDB password for the given username\n5. Install maven (see `Dockerfile` at root for version).\n6. Build, and launch the bot.\n```shell script\nmvn clean package -D skipTests\n./target/bin/main\n```\n\n### Docker Installation\n\n1. Clone this repository, or copy the root `docker-compose.yaml` and `mysql/init` directory since only these files are required.\n2. Create a file named `.env` and set environment variables (see `.env-sample`).\n3. Execute `docker-compose up -d`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmotoki317%2Fmoto-bot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmotoki317%2Fmoto-bot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmotoki317%2Fmoto-bot/lists"}