{"id":13316205,"url":"https://github.com/cloudwithax/flare","last_synced_at":"2025-03-15T16:43:51.917Z","repository":{"id":158509775,"uuid":"614516141","full_name":"cloudwithax/flare","owner":"cloudwithax","description":"A fully-featured Lavalink client library for Lua that works seamlessly with Discordia.","archived":false,"fork":false,"pushed_at":"2023-04-15T22:10:09.000Z","size":16,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-22T06:37:49.897Z","etag":null,"topics":["discord","discordia","lavalink","lavalink-api","lavalink-wrapper","lua","lua-lavalink","luvit","music-bot","youtube"],"latest_commit_sha":null,"homepage":"","language":"Lua","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cloudwithax.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-03-15T18:39:38.000Z","updated_at":"2023-03-28T15:20:15.000Z","dependencies_parsed_at":null,"dependency_job_id":"2c856c31-708c-4fef-9cc5-50bb8f0ab905","html_url":"https://github.com/cloudwithax/flare","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudwithax%2Fflare","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudwithax%2Fflare/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudwithax%2Fflare/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudwithax%2Fflare/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cloudwithax","download_url":"https://codeload.github.com/cloudwithax/flare/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243762238,"owners_count":20343976,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["discord","discordia","lavalink","lavalink-api","lavalink-wrapper","lua","lua-lavalink","luvit","music-bot","youtube"],"created_at":"2024-07-29T18:20:37.548Z","updated_at":"2025-03-15T16:43:51.905Z","avatar_url":"https://github.com/cloudwithax.png","language":"Lua","readme":"# Flare\n\nA fully-featured Lavalink client library for Lua that works seamlessly with Discordia.\n\n\n## NOTE\n\nThis client library is in heavy development and **will** change drastically. Please do not use this production until all bugs have been worked out.\n\n\n# Installation\n\nTo install this library, you must use the `lit` package manager as follows:\n\n```\nlit install cloudwithax/flare\n```\n\n\n# Example\n\nHeres a quick example:\n\n```lua\nlocal discordia = require('discordia')\nlocal flare      = require('flare')\nlocal Pool       = flare.Pool\nlocal Player     = flare.Player\nlocal Node       = flare.Node\nlocal client    = discordia.Client()\n\n\n\nlocal node = {\n    host = '127.0.0.1',\n    port = 2333,\n    password = 'youshallnotpass',\n    identifier = 'mynode'\n}\n\nclient:on('ready', function()\n    Pool():create_node(client, node)\n    print('Logged in as ' .. client.user.username)\nend)\n\nclient:on('messageCreate', function(message)\n\n    -- handle your commands here\n\n    if command == 'join' then\n        local player = Node:create_player(vc)\n\n    elseif command == 'play' then\n        local player = Node:get_player(guildid)\n        local tracks = player:get_tracks(query)\n        local track = tracks[1]\n        player:play(track)\n\n    elseif command == 'leave' then\n        local player = Node:get_player(guildid)\n        player:disconnect()\n    end\nend)\n\nclient:run('Bot \u003cyour token here\u003e')\n\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcloudwithax%2Fflare","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcloudwithax%2Fflare","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcloudwithax%2Fflare/lists"}