# Creating Mods

To see current mods, and view an example mod that you can make into your own, follow this link: <https://github.com/discord-bot-studio/mods>

### Mod File Format

#### HTML

The HTML is what will be rendered in the node in Discord Bot Studio. You can use `<select>`, `<input>`, and `<textarea>` to capture input from the user. The `name` attribute will be used to save the input data. This is then made available in the `mod` function as fields on the `action` parameter.

#### Mod

The mod function is where the logic of the mod should be written. There are parameters available for use.&#x20;

The `action` parameter will have fields with the values that were saved from the user input from the node HTML.

![In this example mod you can see that there is a textarea which has name="messageText". That allows us to access action.messagetext from within the mod code.](https://1776366025-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M0L1z_JwGF9x5j-YBBE%2Fuploads%2FkypCf7kp7oYgqVRpoRHM%2Fimage.png?alt=media\&token=fcd55ba2-43fb-4c2c-9217-ca0bed0881c7)
