Compare commits
14 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 2624f1ec06 | |||
| bfb16c503a | |||
| 9acbbe5644 | |||
| 2d2e649a5f | |||
| a6f110c9c8 | |||
| 2621fa45e5 | |||
| f1acaf529a | |||
| d970f37343 | |||
| 0ef8fe58d2 | |||
| 24190a3b4a | |||
| 4de1e6e7cb | |||
| 1cc8f7fbaa | |||
| 3727112892 | |||
| 6407c1e41f |
6
.env
6
.env
@@ -1,16 +1,17 @@
|
|||||||
# Discord
|
# Discord
|
||||||
DISCORD_TOKEN=your_discord_bot_token
|
DISCORD_TOKEN=your_discord_bot_token
|
||||||
PREFIX=!
|
PREFIX=!
|
||||||
GUILD_ID=123456789012345678
|
GUILD_ID=123456789012345678,123456789012345678
|
||||||
ADMIN_ROLE_IDS=111111111111111111,222222222222222222
|
ADMIN_ROLE_IDS=111111111111111111,222222222222222222
|
||||||
REQUIRED_ROLE_IDS=333333333333333333,444444444444444444
|
REQUIRED_ROLE_IDS=333333333333333333,444444444444444444
|
||||||
|
|
||||||
# Jellyfin
|
# Jellyfin
|
||||||
JELLYFIN_URL=http://127.0.0.1:8096
|
JELLYFIN_URL=http://127.0.0.1:8096
|
||||||
JELLYFIN_API_KEY=your_jellyfin_api_key
|
JELLYFIN_API_KEY=your_jellyfin_api_key
|
||||||
|
ENABLE_TRIAL_ACCOUNTS=false
|
||||||
|
|
||||||
# Jellyseerr
|
# Jellyseerr
|
||||||
JELLYSEERR_ENABLED=true
|
JELLYSEERR_ENABLED=false
|
||||||
JELLYSEERR_URL=http://localhost:5055
|
JELLYSEERR_URL=http://localhost:5055
|
||||||
JELLYSEERR_API_KEY=your_api_key_here
|
JELLYSEERR_API_KEY=your_api_key_here
|
||||||
|
|
||||||
@@ -22,3 +23,4 @@ DB_NAME=jellyfin_bot
|
|||||||
|
|
||||||
# Logs
|
# Logs
|
||||||
SYNC_LOG_CHANNEL_ID=555555555555555555
|
SYNC_LOG_CHANNEL_ID=555555555555555555
|
||||||
|
EVENT_LOGGING=false
|
||||||
|
|||||||
27
CHANGELOG.md
Normal file
27
CHANGELOG.md
Normal file
@@ -0,0 +1,27 @@
|
|||||||
|
# 1.0.4
|
||||||
|
|
||||||
|
- Multi-Guild support (As long as a user has a required role or admin role in one server, they are able to use the bot and Jellyfin)
|
||||||
|
- Fixed link command instructions not updating based on Jellyseerr availability
|
||||||
|
|
||||||
|
# 1.0.3
|
||||||
|
|
||||||
|
- Fixed: `ValueError: too many values to unpack (expected 2)`
|
||||||
|
- Cleanup will now delete Jellyseerr accounts as well
|
||||||
|
- Added Trial Jellyfin account support (enable in .env). Will not create a Jellyseerr account, lasts 24 hours, one time use.
|
||||||
|
|
||||||
|
# 1.0.2
|
||||||
|
|
||||||
|
- Fixed Jellyseerr support breaking linking, unlinking, and deletion
|
||||||
|
- Added the ability to link Jellyseerr accounts when linking Jellyfin
|
||||||
|
- Added event logging support for console (Can be toggled in .env or with commands)
|
||||||
|
- Reformatted the updates message
|
||||||
|
- Running a command without any values will now show you the proper command usage
|
||||||
|
|
||||||
|
# 1.0.1
|
||||||
|
|
||||||
|
- Added Jellyseerr Support
|
||||||
|
|
||||||
|
# 1.0.0
|
||||||
|
|
||||||
|
- Bot can now track update releases
|
||||||
|
- Restrict prefixes to non-alphanumeric symbols
|
||||||
24
README.md
24
README.md
@@ -1,4 +1,10 @@
|
|||||||
# Jellyfin-Discord
|
# Jellycord
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
[](https://discord.gg/EdPJAhrDq8)
|
||||||
|

|
||||||
|
|
||||||
Allow the creation and management of Jellyfin users via Discord
|
Allow the creation and management of Jellyfin users via Discord
|
||||||
|
|
||||||
Join my [Discord](https://discord.com/invite/zJMUNCPtPy) for help, and keeping an eye out for updates!
|
Join my [Discord](https://discord.com/invite/zJMUNCPtPy) for help, and keeping an eye out for updates!
|
||||||
@@ -7,7 +13,7 @@ This is a very simple and lightweight Jellyfin Discord bot for managing users. I
|
|||||||
|
|
||||||
Fill out values in the .env and you're good to go!
|
Fill out values in the .env and you're good to go!
|
||||||
|
|
||||||
# Features
|
## Features
|
||||||
|
|
||||||
- Automatic Account Cleanup
|
- Automatic Account Cleanup
|
||||||
- Creating Accounts
|
- Creating Accounts
|
||||||
@@ -18,30 +24,31 @@ Fill out values in the .env and you're good to go!
|
|||||||
- Change bot prefix live
|
- Change bot prefix live
|
||||||
- Checks for new releases
|
- Checks for new releases
|
||||||
|
|
||||||
# Command Overview
|
## Command Overview
|
||||||
|
|
||||||
**Pinging the bot will show you the necessary commands to create your account.**
|
**Pinging the bot will show you the necessary commands to create your account.**
|
||||||
|
|
||||||
**PLEASE NOTE BEFORE USING. THIS BOT IS MEANT TO USE REQUIRED ROLES IN ORDER TO WHITELIST USERS FOR JELLYFIN. TAKING A USERS ROLE AWAY WILL DELETE THEIR JELLYFIN ACCOUNT WHEN THE BOT RUNS ITS CLEANUP (24 Hour Schedule or Admin Forced)**
|
**PLEASE NOTE BEFORE USING. THIS BOT IS MEANT TO USE REQUIRED ROLES IN ORDER TO WHITELIST USERS FOR JELLYFIN. TAKING A USERS ROLE AWAY WILL DELETE THEIR JELLYFIN ACCOUNT WHEN THE BOT RUNS ITS CLEANUP (24 Hour Schedule or Admin Forced)**
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
**There are protections in place to stop users from creating an account where people can see. If a user sends the account creation or reset in a guild, the bot will delete it.**
|
**There are protections in place to stop users from creating an account where people can see. If a user sends the account creation or reset in a guild, the bot will delete it.**
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
**If a user already has a linked Jellyfin account, the bot will not allow them to create another account.**
|
**If a user already has a linked Jellyfin account, the bot will not allow them to create another account.**
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
**In order to create an account, you must have the required roles specified in the .env**
|
**In order to create an account, you must have the required roles specified in the .env**
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
***User Commands***
|
***User Commands***
|
||||||
- `!createaccount` <username> <password> - Create your Jellyfin account
|
- `!createaccount` <username> <password> - Create your Jellyfin account
|
||||||
- `!recoveraccount` <username> <newpassword> - Reset your password
|
- `!recoveraccount` <username> <newpassword> - Reset your password
|
||||||
- `!deleteaccount` <username> - Delete your Jellyfin account
|
- `!deleteaccount` <username> - Delete your Jellyfin account
|
||||||
|
- `!trialaccount` <username> <password> - Create a 24-hour trial Jellyfin account. Only if ENABLE_TRIAL_ACCOUNTS=True
|
||||||
|
|
||||||
***Admin Commands***
|
***Admin Commands***
|
||||||
- `!cleanup` - Remove Jellyfin accounts from users without roles
|
- `!cleanup` - Remove Jellyfin accounts from users without roles
|
||||||
@@ -54,4 +61,5 @@ Fill out values in the .env and you're good to go!
|
|||||||
|
|
||||||
***Admin Bot Commands***
|
***Admin Bot Commands***
|
||||||
- `!setprefix` - Change the bots command prefix
|
- `!setprefix` - Change the bots command prefix
|
||||||
- `!updates` - Manually check for bot updates
|
- `!updates` - Manually check for bot updates
|
||||||
|
- `!logging` - Enable/Disable Console Event Logging
|
||||||
1
version.json
Normal file
1
version.json
Normal file
@@ -0,0 +1 @@
|
|||||||
|
{ "version": "1.0.4" }
|
||||||
@@ -1 +1 @@
|
|||||||
1.0.1
|
1.0.4
|
||||||
Reference in New Issue
Block a user