Skip to content

[Update/WIP] Update to Elixir 1.16.0#10

Open
zastrixarundell wants to merge 33 commits intomasterfrom
update/elixir-1.16.0
Open

[Update/WIP] Update to Elixir 1.16.0#10
zastrixarundell wants to merge 33 commits intomasterfrom
update/elixir-1.16.0

Conversation

@zastrixarundell
Copy link
Collaborator

@zastrixarundell zastrixarundell commented Jan 11, 2024

  • Update to Elixir 1.16.0 and the associated version of Erlang
  • Fix syntax now that I have a little bit more experience
  • Update dependencies
  • Update commands to use the new discord slash thing

Using with statement for play command to reduce space
It lives! It's starting at the very least!
I don't know why this was here, maybe because nostrum needed it at some point but everything seems to work fine* without it.

* It wasn't to start, I can't even get the status to change so this commit might have to be reversed
Apparently nostrum does injection of consumer now so need to make a hash and touple for it.
Left it in here by accident
Look at all of the script elements to get the `client_id`. Now it loops through the scripts in reverse in hopes of finding the SoundClound token.
Add basic interaction for help
The old value was changed by accident during testing
Add the correct flags to make the command be disappearing.
Working commands for forward and backward.
Discord messed something up so I need to use the git version of Nostrum for it to work.
Using better conditionals and such.
Better error handling for poision and httpoison
@zastrixarundell zastrixarundell added the wip Work in Progress label Jan 11, 2024
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's no time of the message when using the slash commands so 🤷

"Yeah, that won't work.",
"The link you tried to provide me isn't working. Recheck it."
),
1 <<< 6
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably should use an enum/map or something for this.

Add support for OCI. I have no idea why `podman-compose` doesn't work, for some reason it goes straight into `/bin/sh` instead of the defined `CMD`.
Add environment configuration for the docker-compose.yml file.
Add container name to the default compose file.
Put `_` for unused value and better information on the Logger.debug/1 call
Added correct specs and change some functions to be private as they're not designed ot be used outside of the current module.
`use Mix.Config` is deprecated.
Rather than naming the user cassian, it's named builder and runner respectively for their function. The main functionality isn't changed though.
Youtube-dl already has youtube and soundcloud setup. So in order to not invent hot water it was opted out to not use a genserver hack with floki (TODO: Remove Floki, possibly HTTPoison as well) and it's just made that youtube-dl from path is used.
Sometimes the metadata might take a few seconds. This fixes the issue by not allowing playlists and by sending an initial wait message and there won't be an issue as long it responds within 15 minutes.
Managed to make `playlist`, `next` and `previous` work with interactions. Need to see how to implement disapearring messages but it's mostly working.
Basically I want for my bot to be restarted on every boot and such.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

wip Work in Progress

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant