Skip to content

Commit

Permalink
docs: docs about simple music commands
Browse files Browse the repository at this point in the history
  • Loading branch information
Lulalaby committed Jan 23, 2025
1 parent 066cf2f commit 4a06d82
Show file tree
Hide file tree
Showing 4 changed files with 45 additions and 0 deletions.
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)
4 changes: 4 additions & 0 deletions DisCatSharp.Extensions.Docs/articles/toc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ items:
uid: preamble
- name: Extensions
items:
- name: Simple Music Commands
items:
- name: Introduction
uid: extensions_simple_music_commands_intro
- name: TwoFactor Commands
items:
- name: Introduction
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 4a06d82

Please sign in to comment.