Skip to content

Commit 4a06d82

Browse files
committed
docs: docs about simple music commands
1 parent 066cf2f commit 4a06d82

File tree

4 files changed

+45
-0
lines changed

4 files changed

+45
-0
lines changed
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
---
2+
uid: extensions_simple_music_commands_intro
3+
title: Simple Music Commands Introduction
4+
description: Introduction to Simple Music Commands
5+
author: DisCatSharp Team
6+
---
7+
8+
# Simple Music Commands
9+
10+
## What is this?
11+
12+
This extensions turns your DisCatSharp bot into a music bot, without the trouble of writing each command.
13+
14+
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.
15+
16+
## Quick run-down
17+
18+
```cs
19+
DiscordClient client;
20+
21+
// Initiate the application commands module first
22+
23+
// Initiate the simple music commands module
24+
client.UseSimpleMusicCommands(new LavalinkConfiguration());
25+
26+
// Register the music commands
27+
var extension = await Client.GetSimpleMusicCommandsExtension();
28+
extension.RegisterMusicCommands();
29+
30+
// Connect the discord client first!
31+
await client.ConnectAsync();
32+
33+
// Connect the extension
34+
await extension.ConnectAsync();
35+
```
36+
37+
## And that does?
38+
39+
It creates and handles application commands for your bot, all by itself 💕
40+
41+
![Commands 1](/images/simple_music_commands_commandblock_1.png) ![Commands 2](/images/simple_music_commands_commandblock_2.png)

DisCatSharp.Extensions.Docs/articles/toc.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@ items:
33
uid: preamble
44
- name: Extensions
55
items:
6+
- name: Simple Music Commands
7+
items:
8+
- name: Introduction
9+
uid: extensions_simple_music_commands_intro
610
- name: TwoFactor Commands
711
items:
812
- name: Introduction
28.2 KB
Loading
26.4 KB
Loading

0 commit comments

Comments
 (0)