Cog-Creators / Cog-Board

Redirect: https://cogboard.red
12 stars 3 forks source link

Request: Message templating / announcement cog #13

Open Brandjuh opened 7 years ago

Brandjuh commented 7 years ago

Hello there!

At least thanks for taking the time to read this, I do not know how I can explain this but I will do my best.

For a few sections on my own server I have a layout that I use for posting the content. image

Because its a pain in the ass to make all this post by hand I would like to see it a little but automatic, so the bot will change my text to the layout.

What I mean I will post the text like this: image image

and the bot will change it to: image image

Is this possible? I use it the most of the time with a attachment is that possible or is it preferabele to do it with command?

I hope you can help me, thanks in advance.

Edit: I pressed to fast on comment, I am still writing. edit2: finished

Kowlin commented 7 years ago

Bots cannot edit the messages of any other user then them self's. Sorry :(

Brandjuh commented 7 years ago

They can not edit text with admin permission? Maybe they can copy the text and post it int he right context? Dont close it to fast, I am not out of ideas ;-)

Brandjuh commented 7 years ago

What I mean, Can I not put some text in it that the bot know he must make the layout post, then the bot deletes the message from the user.

skeith commented 7 years ago

If the bot copies the text then post it again with addition, it would create issue on post with 2000 chars

Brandjuh commented 7 years ago

The posts are smaller Then 2000 chars

Op 6 mrt. 2017 12:36 schreef "Yukirin" notifications@github.com:

If the bot copies the text then post it again with addition, it would create issue on post with 2000 chars

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/Cog-Creators/Cog-Board/issues/13#issuecomment-284373125, or mute the thread https://github.com/notifications/unsubscribe-auth/AY_XMwR5EKs6XhLnRJT8XDKm9XLnhCEOks5ri-_MgaJpZM4MTeEB .

Brandjuh commented 7 years ago

Sorry for the short answer,

I need to post the text and attachment first. So I know if the post is to long or not. I am not sure if the bot can repost the attachment, otherwise he can ignore the attachment and just repost the text.

Then is the attachment above the text, I can deal with that. and if the bot can repost the attachment then he can give a error before removing the post so I can edit the post so its less text.

Chovin commented 7 years ago

This seems like a very specific request. If you are the only one posting stuff that needs formatting, I can make an alias for you that'll do the job.

If other people would like this as a cog instead of an alias, 👎 this comment

Brandjuh commented 7 years ago

For now I Am the only one. I realise Its very specific. Thanks in advance!

Op 8 mrt. 2017 01:43 schreef "Chovin" notifications@github.com:

This seems like a very specific request. If you are the only one posting stuff that needs formatting, I can make an alias for you that'll do the job.

If other people would like this as a cog instead of an alias, 👎 this comment

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/Cog-Creators/Cog-Board/issues/13#issuecomment-284908934, or mute the thread https://github.com/notifications/unsubscribe-auth/AY_XM6sq7auN9KkdbB3CRnStTkwbWgzzks5rjfmbgaJpZM4MTeEB .

Chovin commented 7 years ago

few questions:

  1. this isn't for a selfbot is it?
  2. what is "attachment/link". could it be an image you upload to discord?
Brandjuh commented 7 years ago

Its for self host red bot. Could be both

Op 16 mrt. 2017 07:28 schreef "Chovin" notifications@github.com:

few questions:

  1. this isn't for a selfbot is it?
  2. what is "attachment/link". could it be an image you upload to discord?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/Cog-Creators/Cog-Board/issues/13#issuecomment-286969135, or mute the thread https://github.com/notifications/unsubscribe-auth/AY_XM4dHy_lreN3dGfWU1XXK5s3kUiZ0ks5rmNZzgaJpZM4MTeEB .

Chovin commented 7 years ago

@Brandjuh oh lol we've been reading this wrong the whole time. I'll edit the title to make it more clear. Correct me if I'm wrong, you want a selfbot templating cog. a cog like this for ex. [p]format announce "title text" "body text" "link or attached image"

to make this more useful for everyone else (and get more use from the effort), how about we also allow for template building.

[p]template add announce
======================
{0}
======================

{1}

{2}

it could also be toggled to be used as an announcement system (sending the templated message to a specific channel).

next time please specify if a suggestion is for selfbot or not ;) although, this could actually just be made as a regular cog and let selfbot do the editing.

Chovin commented 7 years ago

and with that, this might as well just be a customcommands edit. 👍 if you agree

Brandjuh commented 7 years ago

What do you mean with selfbot? Its not a bot thats talking as me. It needs be done by a bot, the screenshots where a example ;-) Its hard to made a bot saying when its not possible, haha.

The announcement template is fine.

Sorry for the confusing, English is not my mother language and I am new to discordbots.

Twentysix26 commented 7 years ago

Why aren't you just copying / pasting the template from a .txt file? This sounds very unneeded

(just my observation, you're very much free to request it)

Chovin commented 7 years ago

I think it'd be a nice addition to customcommands :)

Brandjuh commented 7 years ago

@Twentysix26 To much copy/past work. If its possible with this, then its faster and we can use a uniform layout.

Chovin commented 7 years ago

Custom command arguments