-
-
Notifications
You must be signed in to change notification settings - Fork 14
Discord Integration
Create a new Discord Application and Bot for your server on Discord's Developer Portal.
To invite the Bot to your server, you must generate an OAuth2 URL with the correct permissions. Click on the OAuth2 tab in the sidebar, select bot under "Scopes," and grant your bot permissions. You will need at minimum:
- Send Messages
- Read Message History
- Embed Links (for the neat embeds such as in
$info
.)
Under the Bot tab, make your bot private to prevent other people from inviting it to their servers and using your Switch.
- Enable
Privileged Gateway Intents
andServer Members Intent
under the same tab.
When you start the application by clicking the .exe
, the Discord bot will be launched.
Configure the bot's settings on your server. If you only want it in a few specific channels, remove all the permissions on the bot's role itself and add the role to specific channels only. Ensure that you do not have any other roles that are restricting the bot's permissions (including the "everyone" role), and you enter any extra codes needed if you have 2FA enabled.
NOTE: You will need to restart the .exe
for changes to take affect, after restarting you will also need to set the dodo code again.
When SysBot.AnimalCrossing.exe
is run for the first time, a templateconfig.json
will be created in the same folder. It will look as follows:
-
AcceptingCommands: Boolean indicating whether or not your bot will accept commands, you will most likely want to leave this on
true
. - Name: The name of your bot, seperate from the username and nickname your bot has in Discord.
-
Token: The token of your Discord application, to request a token go to Discord's Developer Portal.
- Do not share this token with other people, as it will allow them to run their own code on your bot account.
-
Prefix: Character before your message that indicates it's a command.
- Default is
$
.
- Default is
-
RoleUseBot: Name of the role required to use bot commands other than
$help
and$info
.- Leaving this as the default
@everyone
will make it so no role is required.
- Leaving this as the default
-
Channels: List of channel IDs in which commands may be used.
- Leaving this empty causes commands to be usable in any channel.
-
Users: List of user IDs that are allowed to use commands.
- Leaving this empty causes anyone to be able to use commands.
-
Sudo: List of user IDs that are granted sudo access, allowing them to use commands in the Control Module.
- A list of commands can be found on the Discord Commands page.
- SkipConsoleBotCreation: Boolean indicating whether or not your bot will try to connect to a Switch, mostly for testing purposes for features that don't require a Switch to be connected
-
Offset: Inventory offset. Don't change this unless you're manually updating it for a new game update.
- For the current version (v1.6.0) the offset should be
2906423256
if you have one player profile on your island. - If you have more than one player profile, use this formula to determine the offset:
2906423256 + (1260408 * (number of profiles on your island - 1))
- For the current version (v1.6.0) the offset should be
-
RequireValidInventoryMetadata: Whether or not the inventory offset needs to be valid.
- Leave this on
true
unless you really know what you're doing.
- Leave this on
-
DropConfig: A subsection of the config file for dropping related settings.
-
AutoClean: Indicates whether or not the items surrounding the player character should be picked up while idle.
- This may cause furniture close to the player character to be picked up when alone on the island.
- NoActivitySeconds: The time in seconds before the bot autocleans if enabled.
- PickupCount: The amount of items to pick up when cleaning.
-
WrapAllItems: Boolean indicating whether or not all items should be wrapped
- Default is
yes
since this makesdrop item
the first option when selecting an item in-game, making the task more generic and faster.
- Default is
- WrappingPaper: Indicates which type of wrapping paper should be used.
-
AutoClean: Indicates whether or not the items surrounding the player character should be picked up while idle.
-
AllowClean: Boolean indicating whether or not
$clean
can be used to pick up items surrounding the player character. -
IP: The IP that should be connected to. Y
- You can find this by going to the Homebrew Menu on your Switch and pressing Y.
- Port: Port the bot will try to connect to, do not change this.
For comparison, here's what my config.json
looks like after filling out all the fields: