cyberdisc-bot icon indicating copy to clipboard operation
cyberdisc-bot copied to clipboard

Automatic readme updating

Open emtee14 opened this issue 4 years ago • 21 comments

Resolves #413

emtee14 avatar May 31 '20 21:05 emtee14

Would this work without a persistent disk?

Sh3llcod3 avatar May 31 '20 23:05 Sh3llcod3

Could try just reading from the readme channel itself and then putting it into a JSON format and then comparing maybe I'm not sure I'll have a think tomorrow

emtee14 avatar Jun 01 '20 00:06 emtee14

Thinking about it I could get the sha-1 of the file locally then use the GitHub API to get the sha of the file on there then compare it

emtee14 avatar Jun 01 '20 00:06 emtee14

Yeah perhaps, my idea was to pin the hash in the dev testing channel and compare the pinned hash with one calculated at deployment.

If same, nothing happens.

If different, then it removes the previous pin, posts and pins the new hash, nukes the #readme channel and creates it again.

Sh3llcod3 avatar Jun 01 '20 00:06 Sh3llcod3

Yh that probs a better idea as I just realised the API one wouldn't work and whats the dev testing channel?

emtee14 avatar Jun 01 '20 11:06 emtee14

It's an internal channel for testing bot features, but the point is, any channel like this can be used

Sh3llcod3 avatar Jun 01 '20 12:06 Sh3llcod3

oh right cool ill do it that way

emtee14 avatar Jun 01 '20 12:06 emtee14

This should do the trick the only thing it needs changing is the channel id for the dev testing channel

emtee14 avatar Jun 01 '20 16:06 emtee14

Channel ID is: 543766802174443531

Sh3llcod3 avatar Jun 02 '20 11:06 Sh3llcod3

Thanks

emtee14 avatar Jun 02 '20 11:06 emtee14

Lmk when if this is ready/tested please.

Sh3llcod3 avatar Jun 03 '20 10:06 Sh3llcod3

Yh it's ready and tested

emtee14 avatar Jun 03 '20 15:06 emtee14

Lint issue fixed turns out I was looking at the wrong file should be good to go

emtee14 avatar Jun 18 '20 01:06 emtee14

Is this ready now?

Sh3llcod3 avatar Jun 26 '20 23:06 Sh3llcod3

Yh this is ready for production I've tested it

emtee14 avatar Jun 27 '20 00:06 emtee14

Shall I make it auto nuke the channel when the push command is called?

emtee14 avatar Jun 29 '20 20:06 emtee14

Yeah that sounds good

Sh3llcod3 avatar Jul 08 '20 02:07 Sh3llcod3

@thebeanogamer @AnonGuy Can we get a review?

Sh3llcod3 avatar Jul 26 '20 23:07 Sh3llcod3

Will this ever be merged?

emtee14 avatar Sep 10 '20 20:09 emtee14

Not unless @thebeanogamer and @AnonGuy can check this out which is an unlikely occurrence.

Sh3llcod3 avatar Sep 24 '20 19:09 Sh3llcod3

Ah ok

emtee14 avatar Sep 24 '20 22:09 emtee14