Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
2d0aeb2a2e | ||
|
|
2476fa9fae | ||
|
|
34b80aa274 | ||
|
|
a35be2f669 | ||
|
|
06c0f98e25 | ||
|
|
70b721b40f |
No files matched your search
@@ -1 +1,3 @@
|
||||
.vscode/launch.json
|
||||
__pycache__
|
||||
bot_config.conf
|
||||
@@ -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
@@ -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
|
||||
|
||||
Reference in new issue
Block a user