Installation & Preparation
Last updated
Was this helpful?
Last updated
Was this helpful?
TouchGuild is built using the Node.js runtime, so we highly recommend to use it to not face unexpected compatibility issues.
You can also use TouchGuild with instead of Node.js (we tested it and it worked!) and any other runtime that is Node.js (as well as npm) compatible.
We're developing TouchGuild using Node.js, we cannot ensure that using it with Bun or any other runtime will work as expected.
So let's get started installing Node.js or Bun, shall we?
To use TouchGuild, you'll need to install . The latest TouchGuild version (v1.x.x) requires Node.js v16.16.0 or higher.
On macOS, either:
Download the latest version from the . Open the downloaded file & follow the instructions.
Use a package manager like & run the command brew install node
On Windows, it's as simple as downloading any other program. Download the latest version from the . Open the downloaded file & follow the instructions.
On Linux, you can consult to determine how you should install Node.js.
To build a bot, we'll need to create a folder for it.
Run this command in the bot's folder you created to initialize your project folder:
When running this command, a new file will appear in your folder: package.json
, this file lists dependencies of your projects as well as other information about your project.
Once you're done, you're ready to install TouchGuild!
To install TouchGuild, we'll use the Node's package manager (npm).
Run the command below:
You're almost ready to code your Guilded bot!
As said earlier, you can install Bun instead of Node.js, but we cannot ensure that it'll work properly, we only tried it once. As long as Bun supports Node.js and is fully compatible, you won't have any issue when it comes to developing using TouchGuild.
Paste into your Terminal:
Using Homebrew (if you have it installed):
To build a bot, we'll need to create a folder for it.
Run the following command to
After executing it, follow the instruction given by the command (you don't have to specify anything if you don't want to, you can press enter multiple times to skip).
After that, you should see that some files have been added to your folder, this includes your package.json
that is used to manage your dependencies and list other information about your project, and some other files.
You're one step closer to adding TouchGuild to your brand new project.
Finally! We're installing it!
Run the following command into your terminal in your project folder (it is npm compatible).
TouchGuild is ready to use!
While coding, you can run into numerous syntax errors or code in an inconsistent style. It is recommended to install a linter (e.g: ESLint) to ease these troubles.
Now you're ready to code your Guilded bot with TouchGuild.
More ways & more information on how to install Bun (Guide):