6 Commits
Author SHA1 Message Date
rich 2d0aeb2a2e Merge branch 'dev' 2026-02-20 18:12:17 -05:00
rich 2476fa9fae adding gitignore 2026-02-20 18:10:39 -05:00
rich 34b80aa274 Merge branch 'master' of https://git.rickelobe.com/rich/r0b3BOT 2026-02-18 19:46:39 -05:00
rich a35be2f669 fixing api woes 2026-02-18 19:43:13 -05:00
rich 06c0f98e25 bringing bot up to date with current discord api 2026-02-18 19:34:03 -05:00
rich 70b721b40f Merge branch 'dev' into 'master'
Merge Dev into Master - minor update

See merge request Bots/r0b3BOT!65
2022-12-10 00:32:04 +00:00
3 changed files with 32 additions and 1 deletions

No files matched your search

+2
View File
@@ -1 +1,3 @@
.vscode/launch.json
__pycache__
bot_config.conf
+25
View File
@@ -0,0 +1,25 @@
[bot-config]
#
# Replace the placeholders with your information. Do not use quotes.
#
# discord_auth_token - this is the bot token generated via the Discord development console.
# bot_command_prefix - The prefix used identify commands for this bot
# hass_url - URL to your home assistant instance. This is used to turn on the light by your 3d printer
# hass_token - Long Lived Access Token used to authenticate with the REST API for your Home assistant instance
# hass_light - Entity name of the light you want to control
# octoprint_ip_address - IP Address of you OctoPrint (or OctoPi) host. Used to get 3D printer stats.
# statping_url - Server hostname of the StatPing instance we will be querying w/ the REST API
# statping_api_key - API Key for Statping to query for service status
#
discord_auth_token = Njk4NTY1MDM5MzAwNDExNDIy.XpHrZA.QCXjDj_Sk36Ohtu8ryXKSoGKMkc
bot_command_prefix = #
hass_url = <URL to HomeAssistant>
hass_token = <HomeAssistant Long Lived Access Token>
hass_light = <Entity_ID of the light @ your printer>
octoprint_ip_address = <OctoPrint IP Address>
statping_enable = False
statping_url = <Statping URL>
statping_api_key = <Statping API Key>
mmr_checker_enable = True
mmr_checker_interval = 600
mmr_api_url = https://na.whatismymmr.com/api/v1/summoner?name=
+5 -1
View File
@@ -104,7 +104,11 @@ def _on_bambu_update(status):
# Configure bot
bot = commands.Bot(intents=discord.Intents.all(),command_prefix=BOT_COMMAND_PREFIX, description='A derpy derp of a bot.')
intents = discord.Intents.default()
intents.message_content = True
intents.members = True
intents.voice_states = True
bot = commands.Bot(command_prefix=BOT_COMMAND_PREFIX, description='A derpy derp of a bot.', intents=intents)
bot.remove_command('help')
# Load opus once at startup rather than on every sound command