Grok Bot + Discord
Post to Discord from Grok Bot
Through iHatePosting, Grok Bot can post messages with media into a Discord channel. Paste one setup message to your Grok Bot and give it your API key in its secret prompt, then ask it for the post you want.
Setup takes about a minute. A message can hold up to 1,980 characters.
Posting to Discord from Grok Bot
Add iHatePosting to Grok Bot once, connect Discord, and then describe the post. Setup takes about a minute.
Add iHatePosting to Grok Bot once
Paste one setup message to your Grok Bot and give it your API key in its secret prompt. Then connect Discord in iHatePosting if you have not already.
Set up iHatePosting so you can draft, schedule and publish my social media posts.
- Install its command line on your cloud computer: npm install -g ihateposting
- Install its skill: npx skills add iHatePostingOrg/iHatePosting-Agent
- Ask me for my iHatePosting API key through your secure form, never in this chat, and keep it as IHATEPOSTING_API_KEY.
- Check it works: run ihateposting integrations:list.
- Save posts as drafts unless I say otherwise, and ask me before you publish anything.
When it works, show me my connected accounts.Ask for the Discord post
Describe the post in plain language. Grok Bot writes it, applies the settings and schedules it.
> Share the 2.4 changelog in our Discord #announcements channel at 16:00 today.
Grok Bot: Done. Scheduled on Discord.What Grok Bot can do on Discord
On Discord, Grok Bot can post messages with media into a Discord channel.
Channel messages
Send a message into one channel of your server.
Channel list
List the channels the agent may post in, then choose one.
Media
Attach pictures or files to a message.
Scheduling
Send the message at a time you name.
How Grok Bot gets a post onto Discord
You say what you want and Grok Bot makes the calls. A typical conversation goes like this.
Find your Discord channel
Which Discord accounts do I have in iHatePosting?
What happens
- Grok Bot lists your channels and finds Discord
- It can also run the channels helper: Lists the channels the agent can post to.
Compose your content
List my Discord channels and remind the events channel about Friday's call tomorrow at 9:00.
What happens
- Grok Bot drafts the text for Discord
- It uploads any media you mention
Schedule and publish
Yes, schedule it for tomorrow at 9:00.
What happens
- Grok Bot schedules the post in iHatePosting
- iHatePosting publishes it to Discord at that time
Discord settings reference
Say the option in your own words and Grok Bot fills in the matching field. This is every Discord setting it can use.
| Field | Type | Required | Description |
|---|---|---|---|
| channel | string | Yes | Channel must be an id |
Common configurations
Each case below is a request Grok Bot understands, followed by the Discord options it sets.
Choose a channel
Post it in the announcements channel
- Applies: channel: the channel's id
What is Grok Bot?
Grok Bot is xAI's always-on agent, used through a Cursor account. You create named Bots and give each a job; your Bots share one cloud computer with a browser, files and a terminal.
Once a Bot has the iHatePosting command line installed, it writes, queues and sends your posts from that computer.
How iHatePosting works with Grok Bot
Installed as a skill, iHatePosting gives Grok Bot a SKILL.md that teaches it the commands and how to shape a post for each platform, and the ihateposting command line does the work.
- Paste the message into a chat with the agent
# A message to paste into the chat
Set up iHatePosting so you can draft, schedule and publish my social media posts.
- Install its command line on your cloud computer: npm install -g ihateposting
- Install its skill: npx skills add iHatePostingOrg/iHatePosting-Agent
- Ask me for my iHatePosting API key through your secure form, never in this chat, and keep it as IHATEPOSTING_API_KEY.
- Check it works: run ihateposting integrations:list.
- Save posts as drafts unless I say otherwise, and ask me before you publish anything.
When it works, show me my connected accounts.Discord and the other platforms Grok Bot reaches
Ask for Discord and other channels in a single message; every channel still applies its own settings.
Discord requests to try in Grok Bot
An announcement
Share the 2.4 changelog in our Discord #announcements channel at 16:00 today.
A reminder
List my Discord channels and remind the events channel about Friday's call tomorrow at 9:00.
A picture
Post banner.png with a one-line caption to the news channel on Discord tonight.
Discord limits and gotchas to know
A few of Discord's rules shape how Grok Bot writes your request, so it helps to know them.
- A message can hold up to 1,980 characters.
- Every post names one channel by its id; the agent lists the channels first and picks the one you mean.
Frequently asked questions
Start free for 30 daysPaste one setup message to your Grok Bot and give it your API key in its secret prompt, connect Discord in iHatePosting, then ask Grok Bot for the post in plain language. It schedules the post and iHatePosting publishes it at the time you set.
A message can hold up to 1,980 characters.
Grok Bot can set channel. The settings reference on this page lists what each one does.
Yes. Make a key in iHatePosting (Settings → Agents / Dev) and hand it to Grok Bot as the steps above show. The command line can sign in with ihateposting auth:login instead.
Yes. Name a day and a time and iHatePosting publishes the post then, whether or not Grok Bot is still open. An agent that keeps running can also repeat a job on a routine you give it.