TheSharks / WildBeast

Feature-rich Discord bot framework
https://docs.wildbeast.guide
Other
290 stars 141 forks source link

Disable Porn #341

Closed ZandercraftGames closed 6 years ago

ZandercraftGames commented 6 years ago

I deleted the .js files for booru rule34 and e621... but they are still listed as commands in the help command. How do I remove these commands?

curtisf commented 6 years ago

Please give us what version of wildbeast you're using, the method of install (clone vs docker), and the os.

ZandercraftGames commented 6 years ago

1.6, it was done using your instructions on the docs.

Dougley commented 6 years ago

6.1? Follow the decoupling docs

ZandercraftGames commented 6 years ago

Ok... and yes 6.1

linuswillner commented 6 years ago

Deleting files from the source code will not have any effect if you are running WildBeast with Docker, as Docker uses a snapshot image of the source code at the latest commit to any given branch. In other words, the files being used are not the ones in the source code.

If you wish to get this behaviour, you either need to decouple from Docker (As instructed on https://docs.thesharks.xyz/decoupling/) or opt for running WildBeast with methods that do not require external dependencies (Using Lokijs and FFMPEG as opposed to ArangoDB and Lavalink, the docs describe the options for these environment variables).

ZandercraftGames commented 6 years ago

It only says the decoupling method for linux... How do I decouple in a windows environment?

linuswillner commented 6 years ago

The decoupling documentatation provides instructions for both Windows and Linux. What you're looking for is https://docs.thesharks.xyz/decoupling/#windows.

ZandercraftGames commented 6 years ago

So I want to do the reconfiguring section then the windows section... And then whenever I click start in Kitematic it will start from source code?

ZandercraftGames commented 6 years ago

Or then how to I start it from source code if I delete the wildbeast install and wildbeast wildbeast images?

Dougley commented 6 years ago

linuswillner commented 6 years ago

Your questions are adequately answered by the decoupling guide. It instructs the removal of the containers and starting in source mode.

ZandercraftGames commented 6 years ago

But how do you start in source mode where does it day?

ZandercraftGames commented 6 years ago

*say

linuswillner commented 6 years ago

See the Installing dependencies and starting section.

ZandercraftGames commented 6 years ago

Oh ok... I see now

ZandercraftGames commented 6 years ago

Anyways... I know that the bot sometimes crashes when it hits an error... How do I prevent this... cause I know it doesnt crash when in docker.

ZandercraftGames commented 6 years ago

But only crashes when running from source

linuswillner commented 6 years ago

That should be a fairly rare occurrence, but it's still expected behaviour. If there is an uncaught exception, the process exits. You can't really prevent this behaviour, but you can use different systems to mitigate it. Programs like PM2 (https://pm2.keymetrics.io) have the ability to automatically restart the process when it exits.

ZandercraftGames commented 6 years ago

Does PM2 work on Windows?

ZandercraftGames commented 6 years ago

Because I remember 4.5.0 crashed soooooo often with errors about voice.js

linuswillner commented 6 years ago

PM2 is not intended to be run on Windows per se, but it will work in most circumstances. I recommend looking up guides online on the quirks associated with using PM2 on Windows. Otherwise it is just a Node.js application which is inherently cross-platform.

WildBeast v6 is much more stable in terms of errors. This was a more frequent occurrence with previous versions, but due to improvements in code quality it should be an increasingly infrequent issue nowadays.

ZandercraftGames commented 6 years ago

Ok... It seems that In the Networm and ports tab in settings for arango I cannot edit the default value there. P.S. Arango isnt running.

ZandercraftGames commented 6 years ago

*Network

linuswillner commented 6 years ago

The port values are editable. The only thing you cannot edit is the IP address, which is either localhost or an IPv4 address depending on whether you're using Docker Toolbox or not, the latter being used in this case.

ZandercraftGames commented 6 years ago

So what do I do with it not being localhost?

ZandercraftGames commented 6 years ago

Will it function the same still?

linuswillner commented 6 years ago

That's expected behaviour, like I just said. This due to how Docker Toolbox handles networking. The only difference is that you use that IP address as opposed to localhost when reconfiguring the environment, as described in the guide.

ZandercraftGames commented 6 years ago

But the Docker Port jsnt configurable... only the other one...

ZandercraftGames commented 6 years ago

So then how would I set the docker port too?

linuswillner commented 6 years ago

That's a non-issue. It's most likely already pointing to the correct port in Docker.

ZandercraftGames commented 6 years ago

So I would set the LAVA_NODES thing to the ip instead of localhost and the arango URI to that ip too in .env? And then it will work?

linuswillner commented 6 years ago

Yes.

ZandercraftGames commented 6 years ago

Also what about elastic search?

Dougley commented 6 years ago

Locking this issue, GitHub issues are not for extended support and it's getting extremely off topic from the original question

linuswillner commented 6 years ago

Your queries should be adequately answered by the documentation from here on out.