.
cnsumner / huldra Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
.
There is a bit of code to prevent the bot from mentioning itself when sending replies, however in one case this results in the bot replacing the self mention with the word "replace" instead of an empty string.
Simple fix. On line 47, 'replace'
should be replaced with ''
Lines 45 to 48 in 00a0c46
There are a couple of places left in the code where I forgot to swap out the hard coded bot ID with variables. This would prevent the bot from working properly if anyone other than me tried to deploy it.
In both of the below cases, 674451490743779339
needs to be changed to ${bot.self.id.id}
Line 161 in 00a0c46
Line 300 in 00a0c46
There are a few commands in the code where the bot will only respond to the bot owner. This is configurable in config.yaml
but the value isn't actually being used in the code. This prevents the bot from being useful to anyone other than me.
In both of the instances below, the ID (after the ==
) should be replaced with _config.getInt('owner')
Line 175 in 00a0c46
Line 183 in 00a0c46
Update the readme so it's not just the default one. Most of this can be copied from the rust project. Self-assigning this because I'm the only one who would even know what to write.
Currently there is no example configuration file. This isn't ideal, especially since the configuration options are not documented (I had to search through the code just to make sure I remembered everything).
config.yaml
, probably under a folder (maybe example
).config.yaml
should contain the following:discordToken: <discord bot token goes here> #the discord bot account token from the discord developer portal
owner: <bot owner id goes here> #the id of the discord user who should have admin permissions for this bot
probability: 1000 #the number of messages (on average) that should pass between each bot reply
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.