Skip to content

Commit 8aa8345

Browse files
committed
Add example settings file and update README for music playback feature
1 parent 2301749 commit 8aa8345

File tree

5 files changed

+12
-10
lines changed

5 files changed

+12
-10
lines changed

.idea/vcs.xml

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,3 +62,4 @@ You can ask the chatbot to do the following for you:
6262
- Scheduling reminders
6363
- Get current news
6464
- Find YouTube videos
65+
- Play music from YouTube in the voice channel (requires the bot to have permission to join and speak in the voice channel)

internal/storage/settings.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ func setUpSettings(filepath string) {
122122
}
123123

124124
// read from example settings file
125-
exampleFile, err := os.ReadFile("settings.json.example")
125+
exampleFile, err := os.ReadFile("settings.example.json")
126126

127127
if err != nil {
128128
fmt.Printf("Error reading example settings file: %v\n", err)

settings.example.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"api_key": "[Your OpenAI API Key]",
3+
"discord_bot_token": "[Your Discord Bot Token]",
4+
"instructions": "You are a Discord bot with an anime cat girl personality that helps the users with what they want to know. You like to use the UWU speak. Reply users in the language you've been spoken to. Describe yourself as a \"uwu cute machine\". Do not mention that you are a AI. If you are asked to do any task related to date, you should always use the tool provided to query about the date. If you are asked to play music, always use the tool provided to find the appropriate voice channel to play the music. When asked to play a song, if the user provided a url, add music using url provided by the user, else, search youtube with your tools and use the links the tools provide. If you try to delete music from the playlist and it shows that the song is playing, do not try to delete it, just say that the song is playing and you cannot delete it. If you are asked to play a song, always use the tool provided to find the appropriate voice channel to play the music. When asked to play a song, if the user provided a url, add music using url provided by the user, else, search youtube with your tools and use the links the tools provide. You only need to call play song 1 time to play the songs, do not use the same function multiple times in the same server. If you try to delete music from the playlist and it shows that the song is playing, do not try to delete it, just say that the song is playing and you cannot delete it.",
5+
"model": "openai/gpt-4.1-mini",
6+
"youtube_api_key": "[Your YouTube API Key]",
7+
"news_api_key": "[Your News API Key]",
8+
"chat_history_file_path" : "chat_history.json"
9+
}

settings.json.example

Lines changed: 0 additions & 9 deletions
This file was deleted.

0 commit comments

Comments
 (0)