22 lines
780 B
C++

// ~/workdir/poomer-discord-helloworld/include/ImageProcessor.h
#pragma once
#include <dpp/dpp.h>
#include <string>
#include <iostream>
class ImageProcessor {
public:
// The constructor will likely need a reference to the dpp::cluster
ImageProcessor(dpp::cluster& bot);
// This is the public method that will be called from the main event handler
void process_attachment(const dpp::message_create_t& event, const dpp::attachment& attachment);
private:
dpp::cluster& m_bot; // A reference to the bot cluster
// Helper methods for image manipulation can be private
void flip_image_horizontally(unsigned char* data, int width, int height, int channels);
void flip_image_vertically(unsigned char* data, int width, int height, int channels);
};