Giter Site home page Giter Site logo

kariudo / homeassistant-discord-bot Goto Github PK

View Code? Open in Web Editor NEW
8.0 8.0 0.0 777 KB

A discord bot for integrating with Home Assistant. Provides control over your user in voice channels for automation, and reports that status of your friends.

License: MIT License

Dockerfile 4.15% TypeScript 95.85%
bot bun dicord docker home-assistant javascript typescript

homeassistant-discord-bot's Introduction

πŸ‘‹ Hi, I’m @kariudo, and I can't be bothered to actually write a profile because I have better code to write. Cheers!

@kariudo's Holopin board

homeassistant-discord-bot's People

Contributors

deepsource-io[bot] avatar deepsourcebot avatar dependabot[bot] avatar kariudo avatar kjell5317 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

homeassistant-discord-bot's Issues

See how many users are in voice channels

Just got this working it's great :) so useful when playing games and need to move channel or mute.

Would be great with an entity to see in anyone has joined a voice channel

(JS-R1000) Found multiple import of the same path

Description

It is always recommended to group all imports of a single path or source in a single import declaration. These usually happen in a codebase when multiple developers are working on the same codebase. It helps improving code refactoring and code readability as well.

Occurrences

There are 7 occurrences of this issue in the repository.

See all occurrences on DeepSource β†’ app.deepsource.com/gh/kariudo/homeassistant-discord-bot/issue/JS-R1000/occurrences/

Use bot in multiple Servers

This is more of a question then an issue, but was not really sure where to put it.

I have the bot working and it is great. Has helped me with work flow and other things in one of my servers (family gaming server).

I have multiple Discord servers that I "Own" (IE I am listed as the Server Owner on them). I would like to add this to another server of mine (one that is my "personal" one that I use for network notifications and other things that only I have access to) so that I can run automations with HA based on that server as well.

Currently I have your bot running with Docker.

My question. How would home assistant list the different entities for the two servers and would it handle that? I know I would just setup another bot on the Dev Portal and would just spawn a new container in Docker for the new bot. I would also change the topic for MQTT to a unique one for this new bot. However, how would this be presented to HA? Would there be a naming conflict with the entities?

Thanks much!

(JS-D1001) Documentation comments not found for functions and classes

Description

It is recommended to have documentation comments above, or right inside a function/class declaration. This helps developers, users and even the author understand the purpose of a code snippet or API function in the future. NOTE: If you want to stop this issue from getting raised on certain constructs (arrow …

Occurrences

There is 1 occurrence of this issue in the repository.

See all occurrences on DeepSource β†’ app.deepsource.com/gh/kariudo/homeassistant-discord-bot/issue/JS-D1001/occurrences/

(JS-E1009) Found mutable exports

Description

It is recommended not to mutate a name after exporting it. That is to avoid using mutable variable declarator kinds like let and var, which can be mutated even after exporting the name. This creates unexpected results when using the name in the module where it is being imported. This …

Occurrences

There is 1 occurrence of this issue in the repository.

See all occurrences on DeepSource β†’ app.deepsource.com/gh/kariudo/homeassistant-discord-bot/issue/JS-E1009/occurrences/

homeassistant-discord-bot error on start

When I start the container it shows me an error.

"Environment variable TOPIC_BOT is required"

The container was already running without errors and nothing was changed in the settings.

Here ist my .env:

BOT_TOKEN=***
MQTT_URL=mqtt://192.168..**
MQTT_PORT=****
MQTT_USERNAME=user
MQTT_PASSWORD=pass
TOPIC_DISCOVERY=homeassistant
TOPIC_BOT=discordbot
GUILD_ID=***
YOUR_ID=***
BOT_ID=***
MQTT_CLIENT_ID=discordbot_dev_1
BOT_ACTIVITY=🏠Watching the house
BOT_NICKNAME=Marcel

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.