Isse Kun
Emektar Üye
Merhaba arkadaşlar şimdi sizler için radio komutunu paylaşacağım herhangi bir modül gerekmiyor.
radio.js oluşturup vereceğim kodları içine atmanız yeterlidir.
Molly Malone's sotumuzu sunucularınıza eklemek için
Botumuzun destek sunucusuna gelmek ve yardım almak için
radio.js oluşturup vereceğim kodları içine atmanız yeterlidir.
Molly Malone's sotumuzu sunucularınıza eklemek için
Bağlantıları görmek için lütfen
Giriş Yap
Botumuzun destek sunucusuna gelmek ve yardım almak için
Bağlantıları görmek için lütfen
Giriş Yap
JavaScript:
const Discord = require("discord.js");
exports.run = async (client, msg) => {
const radio = {
"number1": "https://20723.live.streamtheworld.com/NUMBER1FM_SC?type=.mp3",
"powerturk": "https://listen.powerapp.com.tr/powerturk/mpeg/icecast.audio?/;stream.nsv",
"power": "https://listen.powerapp.com.tr/powerfm/mpeg/icecast.audio?/;stream.nsv",
"metrofm": "https://17703.live.streamtheworld.com/METRO_FM_SC?type=.mp3",
"fenomen": "https://listen.radyofenomen.com/fenomen/128/icecast.audio?/;stream.nsv",
"slowturk": "https://radyo.dogannet.tv/slowturk",
"joyturk": "https://17753.live.streamtheworld.com/JOY_TURK_SC?/;stream.mp3",
}
if (!msg.guild.voiceConnection) {
if (!msg.member.voiceChannel) return msg.channel.send('❌ | Lütfen Bir Odaya Gir !')
}
let args = msg.content.split(" ").slice(1).join(" ").toLowerCase();
if (!args) return msg.channel.send('❌ | Bir Radyo Seçin : **number1**, **powerturk**, **power**, **metrofm**, **fenomen**, **slowturk**, **joyturk**')
if(!radio[args]) return msg.channel.send('❌ | Lütfen Yandaki Radiolardan Birini Seç : **number1**, **powerturk**, **power**, **metrofm**, **fenomen**, **slowtürk**, **joyturk**')
msg.member.voiceChannel.join().then(connection => {
require('https').get(radio[args], (res) => {
connection.playStream(res);
let embed = new Discord.RichEmbed()
.setAuthor(args)
.setColor(0xFF0000)
.addField("Radyo", args)
.addField("Bağlantı", radio[args])
.setFooter(msg.author.tag);
msg.channel.send("**İyi Dinlemeler**", embed);
});
});
}
exports.conf = {
enabled: true,
guildOnly: false,
aliases: ["radio"],
permLevel: 0
};
exports.help = {
name : "radyo",
usage: "radyo metrofm",
description:"Radyo dinlersiniz"
}
//Molly Malone's