steven
steven
Explore posts from servers
CDCloudflare Developers
Created by steven on 11/3/2023 in #general-help
Tunnel Not Working
Hello! I have recently purchased a new Raspberry Pi and I was hoping to host a few sites on it. I attempted to take the Cloudflare Tunnels route and i set up everything and I don't see any issues from the logs but when I navigate to the subdomain I had set up i get "took too long to respond". I'm not sure if this is an issue with my setup or Cloudflare. How can i troubleshoot? DNS Record: Type: CNAME Name: pi Target: <redacted>.cfargotunnel.com config.yml:
tunnel: pi
credentials-file: /root/.cloudflared/<redacted>.json

ingress:
- hostname: pi.<redacted>
service: http://localhost:3000
- service: http_status:404
tunnel: pi
credentials-file: /root/.cloudflared/<redacted>.json

ingress:
- hostname: pi.<redacted>
service: http://localhost:3000
- service: http_status:404
4 replies
DIAdiscord.js - Imagine an app
Created by steven on 10/14/2023 in #djs-voice
Get existing connection with endpoint, token and session
Hello! I am currently working on a music bot which will have voice recognition capability i've gotten the music part to work (i use lavalink-client) and i've also gotten the voice recognition to work. Now my issue is, is having both work together. When a user does /play it establishes a connection through lavalink-client and lavalink-client doesn't give full voice connection data except endpoint, token and session so I was wondering how can i essentially tap in to that connection using those 3 parameters'? I need access to connection.receiver for the voice recognition system.
7 replies
DIAdiscord.js - Imagine an app
Created by steven on 8/20/2022 in #djs-voice
Bot joins vc but doesnt play nything
import * as voice from '@discordjs/voice';
const player = voice.createAudioPlayer();
const resource = voice.createAudioResource('https://cdn.discordapp.com/attachments/810738582443917322/1010577980826849300/speech.mp3');

const connection = voice.joinVoiceChannel({
channelId: interaction.member.voice.channel.id,
guildId: interaction.guild.id,
adapterCreator: interaction.guild.voiceAdapterCreator
});

player.play(resource)
connection.subscribe(player);

player.on(voice.AudioPlayerStatus.Idle, () => {
connection.destroy()
})
import * as voice from '@discordjs/voice';
const player = voice.createAudioPlayer();
const resource = voice.createAudioResource('https://cdn.discordapp.com/attachments/810738582443917322/1010577980826849300/speech.mp3');

const connection = voice.joinVoiceChannel({
channelId: interaction.member.voice.channel.id,
guildId: interaction.guild.id,
adapterCreator: interaction.guild.voiceAdapterCreator
});

player.play(resource)
connection.subscribe(player);

player.on(voice.AudioPlayerStatus.Idle, () => {
connection.destroy()
})
no error
5 replies