Want do you want to dev with me? You can.
|
|
A discord driver for Botman utilising Yasmin
License: GNU Lesser General Public License v3.0
I want to run more bots simultaneusly.
Can I configure the websocket url with a custom attribute?
For example:
bot1: websocketUrl?bot=testBot
bot2: websocketUrl?bot=musicBot
Just add the following code in DiscordDriver.php
/**
* Send a typing indicator and wait for the given amount of seconds.
* @param IncomingMessage $matchingMessage
* @param int $seconds
* @param float $seconds
* @return mixed
*/
public function typesAndWaits(IncomingMessage $matchingMessage, float $seconds)
{
}
To add support to botman for Discord Embedded messages.
I wanted to require it, but I got this error:
Could not find package jabirchall/botman-driver-discord at any version for your minimum-stability (stable). Check the package spelling or your minimum-stability
This issue is to mark that we are trying to upgrade the discord driver. However, the botman base requires react/socket ^0.4 while the latest version is ^1.2 and multiple libraries we are using to upgrade the driver requires ^1.1. This is blocking us from releasing 1.1.0 of the driver
I used this package with Botman Studio, and after the oAuth connection it connects to the server, but remains offline. Why?
Hey there,
I'm getting Method [createForDiscord] does not exist.
when initiating botman. This is how it looks like on my end:
use BotMan\BotMan\BotManFactory;
use BotMan\BotMan\Drivers\DriverManager;
use React\EventLoop\Factory;
$config = [
'discord' =>[
'token' => "mytoken",
],
];
DriverManager::loadDriver(\JABirchall\BotMan\Drivers\Discord\DiscordDriver::class);
$loop = Factory::create();
$botman = BotManFactory::createForDiscord($config, $loop);
Did I miss anything?
I try to run the example provided in the readme.
I filled the token config field by an actual Discord bot token.
Then I added the following code at the top to make the script work:
<?php
require_once ("./vendor/autoload.php");
use BotMan\BotMan\BotMan;
use BotMan\BotMan\BotManFactory;
use BotMan\BotMan\Drivers\DriverManager;
use BotMan\BotMan\Drivers\Discord\DiscordDriver;
use React\EventLoop\Factory;
When I run the script, the script keeps running, but the Discord bot is not connected.
What I'm missing?
Hi when i install the bot driver i get the following warning.
Package charlottedunois/validator is abandoned, you should avoid using it. No replacement was suggested.
Package charlottedunois/eventemitter is abandoned, you should avoid using it. No replacement was suggested.
Package charlottedunois/collection is abandoned, you should avoid using it. No replacement was suggested.
Package charlottedunois/yasmin is abandoned, you should avoid using it. No replacement was suggested.
Hello
Is it possible to send a user a direct message when they detect a keyboard?
For example - I want a command that they can type in any channel, to respond to them directly in a DM.
Thanks.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.