LogoRobo.js

Configuration

All plugin options and environment variables.

Configure the plugin by creating a config file at config/plugins/robojs/dev.mjs or by passing options inline in your Robo config.

Plugin options

config/plugins/robojs/dev.mjs
export default {
	debugChannelId: '1234567890123456789',
	errorPingRoleId: '987654321098765432',
	commands: true,
	errorForwarding: true
}
config/plugins/robojs/dev.mjs
export default {
	debugChannelId: '1234567890123456789',
	errorPingRoleId: '987654321098765432',
	commands: true,
	errorForwarding: true
}

Prop

Type

Environment variables

VariableDescription
DISCORD_DEBUG_CHANNEL_IDFallback channel ID for error forwarding. The debugChannelId config option takes priority.
.env
DISCORD_DEBUG_CHANNEL_ID=1234567890123456789

Inline configuration

You can also pass options directly in your Robo config:

config/robo.mjs
export default {
	plugins: [
		['@robojs/dev', {
			debugChannelId: '1234567890123456789',
			errorPingRoleId: '987654321098765432'
		}]
	]
}
config/robo.mjs
export default {
	plugins: [
		['@robojs/dev', {
			debugChannelId: '1234567890123456789',
			errorPingRoleId: '987654321098765432'
		}]
	]
}

Production behavior

The plugin includes a build transform hook that automatically removes all dev plugin entries from production builds. When you run robo build, every command, event handler, and hook from this plugin is stripped from the output.

This means you don't need to manually uninstall the plugin before deploying. The plugin safely disappears on its own.

Next steps

On this page