-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: docs about simple music commands
- Loading branch information
Showing
4 changed files
with
45 additions
and
0 deletions.
There are no files selected for viewing
41 changes: 41 additions & 0 deletions
41
DisCatSharp.Extensions.Docs/articles/extensions/simple_music_commands/intro.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
--- | ||
uid: extensions_simple_music_commands_intro | ||
title: Simple Music Commands Introduction | ||
description: Introduction to Simple Music Commands | ||
author: DisCatSharp Team | ||
--- | ||
|
||
# Simple Music Commands | ||
|
||
## What is this? | ||
|
||
This extensions turns your DisCatSharp bot into a music bot, without the trouble of writing each command. | ||
|
||
All you need to do is to follow the setup for Lavalink mentioned in https://docs.dcs.aitsys.dev/articles/modules/audio/lavalink_v4/docker. | ||
|
||
## Quick run-down | ||
|
||
```cs | ||
DiscordClient client; | ||
|
||
// Initiate the application commands module first | ||
// Initiate the simple music commands module | ||
client.UseSimpleMusicCommands(new LavalinkConfiguration()); | ||
|
||
// Register the music commands | ||
var extension = await Client.GetSimpleMusicCommandsExtension(); | ||
extension.RegisterMusicCommands(); | ||
|
||
// Connect the discord client first! | ||
await client.ConnectAsync(); | ||
|
||
// Connect the extension | ||
await extension.ConnectAsync(); | ||
``` | ||
|
||
## And that does? | ||
|
||
It creates and handles application commands for your bot, all by itself 💕 | ||
|
||
![Commands 1](/images/simple_music_commands_commandblock_1.png) ![Commands 2](/images/simple_music_commands_commandblock_2.png) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file added
BIN
+28.2 KB
DisCatSharp.Extensions.Docs/images/simple_music_commands_commandblock_1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+26.4 KB
DisCatSharp.Extensions.Docs/images/simple_music_commands_commandblock_2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.