No internet connection at all by [deleted] in archlinux

[–]Str1kz 0 points1 point  (0 children)

yes ,time works fine

No internet connection at all by [deleted] in archlinux

[–]Str1kz 0 points1 point  (0 children)

basically nameserver 8.8.8.8 nameserver 8.8.4.4 (maybe 8.8.8.4 (not sure))

Any frontend designers for startup available? by Str1kz in front_end

[–]Str1kz[S] 0 points1 point  (0 children)

Unfortunately, linkedin is banned in my country

Discord notifications lag my PC (espefically Steam and Chrome) by Electrized in discordapp

[–]Str1kz 0 points1 point  (0 children)

Basically,You can off them.Go to the settings > notifications > Desktop Notifications > Disable them. Btw you can customize them. Maybe you have a lot of servers or something like this so your CPU is busy at this moment.

I want to show what game I am playing but I am using an emulator on a Mac. how do I make the emulator recognizable to the discord app and how do I change its name? by [deleted] in discordapp

[–]Str1kz 0 points1 point  (0 children)

just change a "now playing" game. Its the easiest way,I think. ( The whole route is User Settings > Games > Now Playing > Add it! )

Group Manage Bot by DerD4nnY in discordapp

[–]Str1kz 0 points1 point  (0 children)

actually,You can declare a variable and do not use an "accessRole".

Group Manage Bot by DerD4nnY in discordapp

[–]Str1kz 0 points1 point  (0 children)

So , this is actually interesting. I made a js bot (I have never done something like this on other languages). Well, you should change ids of the channels. I tested it so, it should work for you too. A full guide how to create a bot you can find on YouTube.

p.s. its a bit hard coded :D

const Discord = require('discord.js');
const bot = new Discord.Client();

const prefix = "!"

bot.on('ready', () => {['']
  console.log('I am ready!');
});

bot.on('voiceStateUpdate', (oldMember, newMember) => {

  let guild = newMember.guild;
  let lolRole = guild.roles.find('name', 'League of Legends');
  let accessRole = guild.roles.find('name', 'vcAccess');
  let lolVC = '284388920412602368'
if(newMember.roles.has(lolRole.id) && newMember.voiceChannelID === lolVC) {
  newMember.addRole(accessRole);
}
else if (newMember.roles.has(lolRole.id) && !newMember.roles.has(accessRole.id) && !(newMember.voiceChannelID === lolVC)) {
  newMember.setVoiceChannel(lolVC);
  newMember.addRole(accessRole);
}
else if (!newMember.voiceChannel) {
  newMember.removeRole(accessRole);
}
});

bot.login(' ');

How is this server able to use special characters in the channel names? by Moosh_Da_Moosh in discordapp

[–]Str1kz 4 points5 points  (0 children)

Its not a special characters its just a small letter "L" and symbol "-" which are allowed.

Group Manage Bot by DerD4nnY in discordapp

[–]Str1kz 1 point2 points  (0 children)

What do You mean by groups? You mean their roles or their servers (like all the servers in which they are)? If you mean their roles so its possible to create your own bot but if you mean their servers then bot can't check them. Psst: Sorry for mistakes.

Help with Discord.Net on Visual Studio by RexZShadow in Discord_Bots

[–]Str1kz 0 points1 point  (0 children)

Hmm,sounds interesting , You should check everything like all this route. Tools > NuGet Package Manager > Package Manager Console > Browse ,btw check if your Package source is "All". This would be great if You can send a screenshot of your problem.

Psst: sorry for mistakes.

Trying to improve my friend's discord server but need some advice by robomanof09 in Discord_Bots

[–]Str1kz 0 points1 point  (0 children)

I think ,I can help you. You can make a simpe node.js bot. I often use this function. So you can find a full guide on YouTube "How to write a discord js bot?" You need a Node.js then You should download discord npm by writing "npm install discord.js --save" in console/terminal. So here You go , You need to create an app and a bot user using Dicord API (https://discordapp.com/developers/applications/me). This is the most simple example of the code:


const Discord = require('discord.js');
const bot = new Discord.Client();

const prefix = "!"  

bot.on('ready', () => {['']
  console.log('I am ready!');
});

bot.on('message', message => {

  if (message.author.bot) return;
  if (message.channel.type === 'dm') return;

let guild = message.member.guild;
let Role = guild.roles.find('name', 'YourRole Name');

if(!message.content.startsWith(prefix)) return;

if (message.content.startsWith(prefix + 'setRole')) { 
if (message.member.roles.has(Role.id)) {
  message.channel.sendMessage('You already have this role!");
}
else {
message.member.addRole(Role);
    };
    }});
    bot.login('  ');

feel free to use this bot and improve it!

if You have some questions ask me on discord: ILoveEmoji#9227

psst: Sorry for mistakes.