bots

JDA. GuildMemberJoin/LeaveEvent

大城市里の小女人 提交于 2021-02-05 09:26:11
问题 I have written the following methods and they both are not working. Anyone know why and how to fix it? PS: The bot has admin perms. public class GuildMemberJoin extends ListenerAdapter { public void onGuildMemberJoin(GuildMemberJoinEvent event) { EmbedBuilder join = new EmbedBuilder(); join.setColor(Color.getHSBColor(227, 74, 64)); join.setTitle("SERVER UPDATE"); join.setDescription(event.getMember().getAsMention() + " has now joined The server!"); event.getGuild().getDefaultChannel()

Discord.py bot dont have certificate

落花浮王杯 提交于 2021-02-05 07:56:09
问题 Yesterday I made a bot and everything was working, today when I try to run my code I have this error: ClientConnectorCertificateError(aiohttp.client_exceptions.ClientConnectorCertificateError: Cannot connect to host discordapp.com:443 ssl:True [SSLCertVerificationError: (1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: certificate has expired (_ssl.c:1108)')] I am using win10, python 3.8, and pycharm. I saw a similar problem on StackOverflow but the solution Is not working for

Using discord.js to detect image and respond

落爺英雄遲暮 提交于 2021-02-05 07:42:23
问题 I'm trying to make a prank Discord bot for my friend's Discord server, but the bot won't respond to anything; not even the elseif function passes. If anyone know why my code isn't working can you please specify it. NOTE: Client variable is Discord.Client if you needed a reference. client.on("message", message => { if (message.channel.id != 425328056777834506) return; if (Math.floor(Math.random() * Math.floor(4))== 3 && message.embeds.length > 0) { message.channel.send("https://cdn.discordapp

Selenium Webdriver can't access a website (The requested URL was rejected)

≯℡__Kan透↙ 提交于 2021-02-02 03:44:34
问题 I did several hours of research and asked a bunch of people on fiverr who all couldn't solve a a specific problem I have. I installed Selenium and tried to access a Website. Unfortunately the site won't allow a specific request and doesn't load the site at all. However, if I try to access the website with my "normal" Chrome Browser, it works fine. I tried several things such as: Different IP's Deleting Cookies Incognito Mode Adding different UserAgents Hiding features which might reveal that

Selenium Webdriver can't access a website (The requested URL was rejected)

烂漫一生 提交于 2021-02-02 03:43:06
问题 I did several hours of research and asked a bunch of people on fiverr who all couldn't solve a a specific problem I have. I installed Selenium and tried to access a Website. Unfortunately the site won't allow a specific request and doesn't load the site at all. However, if I try to access the website with my "normal" Chrome Browser, it works fine. I tried several things such as: Different IP's Deleting Cookies Incognito Mode Adding different UserAgents Hiding features which might reveal that

DiscordAPIError: Unknown role

半世苍凉 提交于 2021-01-29 15:18:21
问题 I was trying to make a command in discord.js in which the bot finds the highest role it can give to a person and gives it to the person. const myrole = message.guild.me.roles.highest.rawPosition const therole = message.guild.roles.cache.find(r => r.rawPosition = myrole-1) const person = message.guild.member(client.users.cache.get("the id")) person.roles.add(therole.id); And I get the following error: (node:18926) UnhandledPromiseRejectionWarning: DiscordAPIError: Unknown Role at

Discord client object is undefined after being exported

六眼飞鱼酱① 提交于 2021-01-29 13:44:48
问题 I've recently run into a problem. For the past several weeks I have been working on some discord bots I have made and am having trouble with exporting the client object. I've been trying to export it to other files so I can hook event listeners in other files using the same object. Below's what I attempted doing. main.js const client = new Discord.Client(); //Defining the client exports.squidly = client; //Attempting to export the client test.js const client = require('../squidly').squidly;

Why does venue telepot isn't correct?

一世执手 提交于 2021-01-29 12:59:01
问题 I'm trying to do a bot which could get your street name by telpot. I've inserted location in line 22 (location) and it works. But when i want to try with 'venue' it doesnt work. Can someone help me to get the name street (or venue) of my users? import json import time from pprint import pprint import telepot from telepot.loop import MessageLoop import telepot.namedtuple bot = telepot.Bot(token) lista = ["New York","Los Angeles","Miami","Toronto","Berlin","Rome","Ciao"] seq = iter(lista)

Bot Handoff integration with teams

夙愿已清 提交于 2021-01-29 10:46:01
问题 I am working with bot handoff integration with teams. I have go through some Microsoft samples and seen some solutions. one Solution is intermediate bot sample integration with teams and other one is using the handoff sdk to initiate the bot handoff and using a third party portal to connect with live agent. Below are the solutions which i have followed. https://github.com/microsoft/BotBuilder-Samples/tree/main/experimental/handoff-library/csharp_dotnetcore/samples https://github.com/tompaana

No Command responses using Discord.py Rewrite [duplicate]

不想你离开。 提交于 2021-01-29 10:20:20
问题 This question already has an answer here : Why does on_message stop commands from working? (1 answer) Closed 12 months ago . I have created a discord bot using the code below but when I type .8ball or .ping in the server, I get no response, nor do I get an error message of any kind. However, I do get the expected response of "Hi" when I type "hello" so I know it's connected. It's baffling me as I've checked the syntax 100 times and can't see any errors. import discord import random from