我正在制造一个不和谐的机器人,我想发出一个禁令命令。当我尝试使用命令时,这个错误在我的终端中弹出:TypeError: client.commands.get(...).execute is not a function at Client.<anonymous> (C:\Users\Lucas\Desktop\Discord BOT\index.js:29:32),我做错了什么?我尝试过在StackOverflow或v12.discordjs.guide上找到的多种解决方案,但都没有成功。谢谢你帮忙!
这是index.js文件:
const fs = require('f
我试图发出一个禁令命令,这个错误不断出现:
D:\projs\js\MASST\node_modules\@sapphire\shapeshift\dist\index.js:47
throw this.error;
^
CombinedError: Received one or more errors
at UnionValidator.handle (D:\projs\js\MASST\node_modules\@sapphire\shapeshift\dist\index.js:1058:23)
at UnionValidator.parse (D:\
我正在运行Centos 6.5 (Kernel Linux 2.6.32-431.el6.x86_64 #1SMP Fri Nov 22 03:15:09 UTC 2013 x86_64 GNU/Linux),我想知道是否有人可以帮助我-我正在通过yum安装Fail2Ban,但是当我运行它时,我得到了以下错误;
service fail2ban start
Starting fail2ban: ERROR Directory /var/run/fail2ban exists but not accessible for writing
我的问题是关于“禁令”这件事。当我点击"+ban“,然后提到用户时,它就起作用了。用户是被禁止的,消息被发送,但它退出的消息错误有关不一致的API和权限,即使我有机器人的管理权限。
当我没有提到任何人时,它会做它应该做的事情,只是给出“没有人要禁止”。消息,但随后它退出并返回错误(Error [BAN_RESOLVE_ID]: Couldn't resolve the user ID to ban.)。我需要重新运行代码让机器人重新启动。
你知道如何让机器人不出问题地运行吗?
const Discord = require('discord.js');
cons
我使用的是fail2ban v.0.8.2,但无法解禁IP:
使用fail2ban-client时,我看到IP:
fail2ban-client status fail2ban
Status for the jail: fail2ban
|- filter
| |- File list: /var/log/fail2ban.log
| |- Currently failed: 1
| `- Total failed: 8
`- action
|- Currently banned: 2
| `- IP list: 151.10.65.197 151.10.72
你好,我最近开始学习Python,这是我对你最好的解释,因为我的英语能力不是很好。我做了一个脚本,从文本文件中读取一个列表,然后我的问题是把它转换成string,这样我就可以在打印函数中显示它。在这样做之后,当用户输入他的“昵称”时,让我们说。脚本已经从文本文件中读取列表。另外,我不知道是否使用拆分(‘,')函数,它应该将单词与那些从用于列表的文本文件中的单词分开。这是我的代码的一些图片。 (主代码) (文本文件-被“禁止”的用户名列表)文本码文件名为Listas_BAN.txt。
我试着自己做了所有的事情,在发布之前我做了一些研究,但是很多方法已经过时了。
# Name
name
嗨,im在管理仪表板上工作,我想向所有用户展示,并检查用户是否阻止了从bans表im获取关于禁令的信息,使用cybercog/laravel-ban来禁止用户Laravel5.8。
所以我有两个表用户表和。
Bans表的列中有带状用户的用户id,名为: bannable_id。
用户模型:
namespace App;
use Illuminate\Notifications\Notifiable;
use Cog\Contracts\Ban\Bannable as BannableContract;
use Cog\Laravel\Ban\Traits\Bannable;
use Illum
你好,我正在尝试制作一个不和谐的机器人来解除某人的禁令,但它给了我这个错误: Unhandled promise rejection: Error [BAN_RESOLVE_ID]: Couldn't resolve the user ID to unban.
at GuildMemberManager.unban (C:\Users\Jakub Sokol\Documents\Coding\Discord Bots\Smiley\node_modules\discord.js\src\managers\GuildMemberManager.js:210:36)
at
有谁知道如何在PircBots中使用它?我只需要获得一个用户的主机名并禁止他们。感谢您的阅读!
if (cmd.equalsIgnoreCase("ban")) {
if (command[1] != null && command[2] != null) {
//Command[1] is the users name.
//Command[2] is the reaso