You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: qzone.go
    path of file: ./repos/ZeroBot-Plugin/plugin/qzone
    
    the code of the file until where you have to start completion: // Package qzone qq空间表白墙
package qzone

import (
	"bytes"
	"encoding/base64"
	"fmt"
	"image"
	"image/color"
	"math/rand"
	"strconv"
	"strings"

    
func getAndPublishEmotion(botqq int64, idList []int64) (err error) {
	var b []byte
	el, err := qdb.getEmotionByIDList(idList)
	if err != nil {
		return
	}
	base64imgs := make([]string, 0, 5)
	for _, v := range el {
		if v.Anonymous {
			v.QQ = 0
		}
		b, err = renderForwardMsg(v.QQ, v.Msg)
		if err != nil {
			return
		}
		base64imgs = append(base64imgs, binary.BytesToString(b))
	}
	return publishEmotion(botqq, "", base64imgs)
}